WpOrg\Requests
HookManager::register()
Register a callback for a hook
Method of the class: HookManager{}
No Hooks.
Return
null
. Nothing (null).
Usage
$HookManager = new HookManager(); $HookManager->register( $hook, $callback, $priority );
- $hook(string) (required)
- Hook name
- $callback(callable) (required)
- Function/method to call on event
- $priority(int)
- Priority number. <0 is executed earlier, >0 is executed later
HookManager::register() HookManager::register code WP 6.6.2
public function register($hook, $callback, $priority = 0);