Requests_Hooker::register() public WP 1.0
Register a callback for a hook
{} It's a method of the class: Requests_Hooker{}
No Hooks.
Return
Null. Nothing.
Usage
$Requests_Hooker = new Requests_Hooker(); $Requests_Hooker->register( $hook, $callback, $priority );
- $hook(string) (required)
- Hook name
- $callback(callback) (required)
- Function/method to call on event
- $priority(int)
- Priority number. <0 is executed earlier, >0 is executed later
Default: 0
Code of Requests_Hooker::register() Requests Hooker::register WP 5.6
public function register($hook, $callback, $priority = 0);