use_http_extension_transport

Whether this class can be used for retrieving an URL.

Description

(boolean) apply_filters( 'use_http_extension_transport', (unknown) $function_exists, (unknown) $args ); 

Returns (boolean)

False means this class can not be used, true means it can.

Parameters (2)

0. $function_exists (unknown) => function_exists('http_request')
The function exists.
1. $args (unknown)
The args.

Usage

To run the hook, copy the example below.
  1. $function_exists = apply_filters( 'use_http_extension_transport', $function_exists, $args ); 
  2.  
  3. if ( !empty( $function_exists ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the use_http_extension_transport callback 
  2. function filter_use_http_extension_transport( $function_exists, $args ) { 
  3. // make filter magic happen here... 
  4. return $function_exists
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'use_http_extension_transport', 'filter_use_http_extension_transport', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'use_http_extension_transport', 'filter_use_http_extension_transport', 10, 2 ); 

Defined (1)

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

/bp-forums/bbpress/bb-includes/backpress/class.wp-http.php  
  1. return apply_filters('use_http_extension_transport', function_exists('http_request'), $args );