WpOrg\Requests
HookManager::register()
Register a callback for a hook
Метод класса: HookManager{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$HookManager = new HookManager(); $HookManager->register( $hook, $callback, $priority );
- $hook(строка) (обязательный)
- Hook name
- $callback(callable) (обязательный)
- Function/method to call on event
- $priority(int)
- Priority number. <0 is executed earlier, >0 is executed later
Код HookManager::register() HookManager::register WP 6.7.1
public function register($hook, $callback, $priority = 0);