WordPress at a glance
функция не описана

Requests_Hooks::dispatch() public WP 1.0

Dispatch a message

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

Хуков нет.

Возвращает

true/false. Successfulness

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

$Requests_Hooks = new Requests_Hooks();
$Requests_Hooks->dispatch( $hook, $parameters );
$hook(string) (required)
Hook name
$parameters(array)
Parameters to pass to callbacks
Default: array()

Код Requests_Hooks::dispatch() WP 5.5.1

<?php
public function dispatch($hook, $parameters = array()) {
	if (empty($this->hooks[$hook])) {
		return false;
	}

	foreach ($this->hooks[$hook] as $priority => $hooked) {
		foreach ($hooked as $callback) {
			call_user_func_array($callback, $parameters);
		}
	}

	return true;
}