addAction()
addAction(string $hook, object $component, string $callback, integer $priority = 10, integer $accepted_args = 1)
Add a new action to the collection to be registered with TriTan CMS.
Parameters
string | $hook | The name of the TriTan CMS action that is being registered. |
object | $component | A reference to the instance of the object on which the action is defined. |
string | $callback | The name of the function definition on the $component. |
integer | $priority | Optional. he 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. |