WP_HTTP_Requests_Hooks::dispatch

SummerySummery

Dispatch a Requests hook to a native WordPress action.

Syntax

WP_HTTP_Requests_Hooks::dispatch( string $hook, array $parameters = array() )

ParametersParameters

$hook

(string) (Required) Hook name.

$parameters

(array) (Optional) Parameters to pass to callbacks.

Default value: array()

ReturnReturn

(boolean) True if hooks were run, false if nothing was hooked.

SourceSource

File: wp-includes/class-wp-http-requests-hooks.php


			
Scroll to Top