http_api_debug

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

Description

do_action( 'http_api_debug', (unknown) $transports, (string) $transports_list ); 

Parameters (2)

0. $transports (unknown)
The transports.
1. $transports_list (string) => 'transports_list'
The transports list.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'http_api_debug', $transports, $transports_list ); 
The following example is for adding a hook callback.
  1. // define the http_api_debug callback 
  2. function action_http_api_debug( $transports, $transports_list ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'http_api_debug', 'action_http_api_debug', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'http_api_debug', 'action_http_api_debug', 10, 2 ); 

Defined (2)

The action is defined in the following location(s).

/bp-forums/bbpress/bb-includes/backpress/class.wp-http.php  
  1. do_action('http_api_debug', $transports, 'transports_list'); 
  1. do_action( 'http_api_debug', $response, 'response', get_class($transport) );