$all
$all : object
access public
execute(string $hook, mixed $arg = '')
Execute functions/methods hooked on a specific action hook.
This method invokes all functions/methods attached to action hook $hook
. It is
possible to create new action hooks by simply calling this method,
specifying the name of the new hook using the $hook
parameter.
You can pass extra arguments to the hooks, much like you can with ApplyFilterHook::apply().
string | $hook | The name of the action to be executed. |
mixed | $arg | Optional. Additional arguments which are passed on to the functions/methods hooked to the action. Default empty. |