diff options
Diffstat (limited to 'documentation/examples/hooks/register/all.php')
-rw-r--r-- | documentation/examples/hooks/register/all.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/documentation/examples/hooks/register/all.php b/documentation/examples/hooks/register/all.php new file mode 100644 index 000000000..f2e4407a6 --- /dev/null +++ b/documentation/examples/hooks/register/all.php @@ -0,0 +1,8 @@ +<?php + +register_plugin_hook('all', 'system', 'example_plugin_hook_handler'); + +// This function will be called for any event of type 'object' +function example_plugin_hook_handler($hook, $type, $value, $params) { + // logic here. +} |