Requests_Hooker::register()publicWP 1.0

Register a callback for a hook

Метод класса: Requests_Hooker{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$Requests_Hooker = new Requests_Hooker();
$Requests_Hooker->register( $hook, $callback, $priority );
$hook(строка) (обязательный)
Hook name
$callback(callback) (обязательный)
Function/method to call on event
$priority(int)
Priority number. <0 is executed earlier, >0 is executed later

Код Requests_Hooker::register() WP 6.1.1

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