fire_plugin_hook

Plugin-related functions

Summary

fire_plugin_hook($name, $args = Array)

Declare the point of execution for a specific plugin hook.

All plugin implementations of a given hook will be executed when this iscalled. The first argument corresponds to the string name of the hook. Thesecond is an associative array containing arguments that will be passed tothe plugin hook implementations.

// Calls the hook 'after_save_item' with the arguments '$item' and '$arg2'
fire_plugin_hook('after_save_item', array('item' => $item, 'foo' => $arg2));
Parameters:
  • $name (unknown) –
  • $args (unknown) –

Usage

Examples

See Also

Project Versions

Table Of Contents

Previous topic

clear_filters

Next topic

get_plugin_broker

This Page