requests-{$hook} WordPress Action Hook
The requests-{$hook} hook is used to modify or cancel a request before it is processed. This hook can be used to for example modify the request data before it is sent to the server, or to cancel the request entirely.
do_action_ref_array( "requests-{$hook}", array $parameters , array $request , string $url ) #
Transforms a native Request hook to a WordPress action.
Description
This action maps Requests internal hook to a native WordPress action.
See also
Parameters
- $parameters
(array)Parameters from Requests internal hook.
- $request
(array)Request data in WP_Http format.
- $url
(string)URL to request.
Source
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |