do_action_ref_array( "requests-{$hook}", array $parameters, array $request, string $url )
- Since
- 4.7.0
Transforms a native Request hook to a WordPress action.
Description
This action maps Requests internal hook to a native WordPress action.
Compatibility
- WordPress
- since 4.7.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$parametersarray- Parameters from Requests internal hook.
$requestarray- Request data in WP_Http format.
$urlstring- URL to request.
Where this hook fires · 1
wp-includes/class-wp-http-requests-hooks.php:75WP_HTTP_Requests_Hooks::dispatch()
Source code
* @since 4.7.0 * * @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; }}Changelog
Introduced in 4.7.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.7.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.