$filter
$filter : object
Hooks API: Hook Class
add(string $hook, callback $function_to_add, integer $priority = self::PRIORITY_NEUTRAL, integer $accepted_args = self::ARGUMENT_NEUTRAL)
Add a new action to the collection to be registered with TriTan CMS.
string | $hook | The name of the TriTan CMS action that is being registered. |
callback | $function_to_add | The name of the function/method that is to be called. |
integer | $priority | Optional. The priority at which the function should be fired. Default is 10. |
integer | $accepted_args | Optional. The number of arguments that should be passed to the $callback. Default is 1. |