http_api_debug WordPress Action Hook

The http_api_debug Wordpress hook is a great way to debug your WordPress site's HTTP API. This hook allows you to see what is happening behind the scenes when you make HTTP requests to your WordPress site. This is a great way to troubleshoot errors and see what is happening when you make changes to your site.

do_action( 'http_api_debug', array|WP_Error $response, string $context, string $class, array $parsed_args, string $url ) #

Fires after an HTTP API response is received and before the response is returned.


Parameters

$response

(array|WP_Error)HTTP response or WP_Error object.

$context

(string)Context under which the hook is fired.

$class

(string)HTTP transport used.

$parsed_args

(array)HTTP request arguments.

$url

(string)The request URL.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.