Requests_Hooks::dispatch( string $hook, array $parameters = array() ): boolean

Dispatch a message


$hook string Required
Hook name
$parameters array Optional
Parameters to pass to callbacks

Default: array()

Top ↑


boolean Successfulness

Top ↑


File: wp-includes/Requests/Hooks.php. View all references

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;

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.