http_api_debug action-hook . WP 2.8.0
Fires after an HTTP API response is received and before the response is returned.
Usage
add_action( 'http_api_debug', 'action_function_name_2645', 10, 5 ); function action_function_name_2645( $response, $context, $class, $parsed_args, $url ){ // action... }
- $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.
Changelog
Since 2.8.0 | Introduced. |
Where the hook is called
http_api_debug
http_api_debug
wp-includes/class-http.php 419
do_action( 'http_api_debug', $response, 'response', 'Requests', $parsed_args, $url );
wp-includes/class-http.php 277
do_action( 'http_api_debug', $response, 'response', 'Requests', $parsed_args, $url );
wp-includes/class-http.php 284
do_action( 'http_api_debug', $response, 'response', 'Requests', $parsed_args, $url );
wp-includes/class-http.php 301
do_action( 'http_api_debug', $response, 'response', 'Requests', $parsed_args, $url );
wp-includes/class-http.php 583
do_action( 'http_api_debug', $response, 'response', $class, $args, $url );