fire_plugin_hook
— Declare the point of execution for a specific plugin hook.
Summary
- fire_plugin_hook($name, array $args = array())
Declare the point of execution for a specific plugin hook.
All plugin implementations of a given hook will be executed when this is called. The first argument corresponds to the string name of the hook. The second is an associative array containing arguments that will be passed to the plugin hook implementations.
<code> // Calls the hook ‘after_save_item’ with the arguments ‘$item’ and ‘$arg2’ fire_plugin_hook(‘after_save_item’, array(‘item’ => $item, ‘foo’ => $arg2)); </code>
- Parameters:
$name (
string
) – The hook name.$args (
array
) – Arguments to be passed to the hook implementations.