WordPress at a glance
function is not described

Requests_Hooker::register() public WP 1.0

Register a callback for a hook

{} It's a method of the class: Requests_Hooker{}

No Hooks.


null. Nothing.


$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 number. <0 is executed earlier, >0 is executed later

Code of Requests_Hooker::register() WP 5.7.2

public function register($hook, $callback, $priority = 0);