add_plugin_hook
— Declare a plugin hook implementation within a plugin.
Summary
- add_plugin_hook($hook, $callback)
Declare a plugin hook implementation within a plugin.
- Parameters:
$hook (
string
) – Name of hook being implemented.$callback (
mixed
) – Any valid PHP callback.
Usage
Examples
<?php add_plugin_hook('install', 'exhibit_builder_install'); ?>