WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Самая быстрая Тема-конструктор для WordPress
функция не описана

WP_HTTP_Requests_Hooks::dispatch() public WP 1.0

Dispatch a Requests hook to a native WordPress action.

{} Это метод класса: WP_HTTP_Requests_Hooks{}

Хуки из метода
Возвращает

true/false. True if hooks were run, false if nothing was hooked.

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

$WP_HTTP_Requests_Hooks = new WP_HTTP_Requests_Hooks();
$WP_HTTP_Requests_Hooks->dispatch( $hook, $parameters );
$hook(строка) (обязательный)
Hook name.
$parameters(массив)
Parameters to pass to callbacks.
По умолчанию: array()

Код WP_HTTP_Requests_Hooks::dispatch() WP 5.5.1

<?php
public function dispatch( $hook, $parameters = array() ) {
	$result = parent::dispatch( $hook, $parameters );

	// Handle back-compat actions.
	switch ( $hook ) {
		case 'curl.before_send':
			/** This action is documented in wp-includes/class-wp-http-curl.php */
			do_action_ref_array( 'http_api_curl', array( &$parameters[0], $this->request, $this->url ) );
			break;
	}

	/**
	 * Transforms a native Request hook to a WordPress actions.
	 *
	 * This action maps Requests internal hook to a native WordPress action.
	 *
	 * @see https://github.com/rmccue/Requests/blob/master/docs/hooks.md
	 *
	 * @param array $parameters Parameters from Requests internal hook.
	 * @param array $request Request data in WP_Http format.
	 * @param string $url URL to request.
	 */
	do_action_ref_array( "requests-{$hook}", $parameters, $this->request, $this->url ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

	return $result;
}