aboutsummaryrefslogtreecommitdiff
path: root/documentation/examples/hooks/register/basic.php
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/examples/hooks/register/basic.php')
-rw-r--r--documentation/examples/hooks/register/basic.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/documentation/examples/hooks/register/basic.php b/documentation/examples/hooks/register/basic.php
new file mode 100644
index 000000000..957e82743
--- /dev/null
+++ b/documentation/examples/hooks/register/basic.php
@@ -0,0 +1,14 @@
+<?php
+
+register_plugin_hook('forward', 'system', 'example_plugin_hook_handler');
+
+function example_plugin_hook_handler($event, $type, $value, $params) {
+ var_dump($event);
+ var_dump($type);
+ var_dump($value);
+ var_dump($params):
+
+ return true;
+}
+
+