$all
$all : object
Hooks API: Hook Class
apply(string $hook, mixed $value) : mixed
Performs a filtering operation on a PM element or event.
Typical use:
1) Modify a variable if a function is attached to hook 'hook' $var = "default value"; $var = $this->apply( 'hook', $var );
2) Trigger functions is attached to event $this->apply( 'event' ); (see DoActionHook::do() )
Returns an element which may have been filtered by a filter.
string | $hook | The name of the the element or action |
mixed | $value | The value of the element before filtering |
applyRefArray(string $tag, array $args) : mixed
Execute functions/methods hooked on a specific filter hook, specifying arguments in an array.
string | $tag | The name of the filter hook. |
array | $args | The arguments supplied to the functions/methods hooked to $tag |
The filtered value after all hooked functions/methods are applied to it.