do_action( 'http_api_debug', array|WP_Error $response, string $context, string $class, array $parsed_args, string $url )
- Since
- 2.8.0
Fires after an HTTP API response is received and before the response is returned.
Compatibility
- WordPress
- since 2.8.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
$responsearray|WP_Error- HTTP response or WP_Error object.
$contextstring- Context under which the hook is fired.
$classstring- HTTP transport used.
$parsed_argsarray- HTTP request arguments.
$urlstring- The request URL.
Where this hook fires · 5
wp-includes/class-wp-http.php:297WP_Http::request()wp-includes/class-wp-http.php:305WP_Http::request()wp-includes/class-wp-http.php:322WP_Http::request()wp-includes/class-wp-http.php:441WP_Http::request()wp-includes/class-wp-http.php:614WP_Http::_dispatch_request()
Source code
* @param array|WP_Error $response HTTP response or WP_Error object. * @param string $context Context under which the hook is fired. * @param string $class HTTP transport used. * @param array $parsed_args HTTP request arguments. * @param string $url The request URL. */ do_action( 'http_api_debug', $response, 'response', 'WpOrg\Requests\Requests', $parsed_args, $url ); if ( is_wp_error( $response ) ) { return $response; } if ( ! $parsed_args['blocking'] ) { return array(Changelog
Introduced in 2.8.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 7.1.0 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.