Used By
Used By | Description |
---|---|
wp-includes/class-wp-http-requests-hooks.php: WP_HTTP_Requests_Hooks::dispatch() | Dispatch a Requests hook to a native WordPress action. |
Dispatch a message
(string) (Required) Hook name
(array) (Optional) Parameters to pass to callbacks
Default value: array()
(boolean) Successfulness
File: wp-includes/Requests/Hooks.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; }
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/requests_hooks/dispatch