http_api_transports filter-hook . WP 3.7.0
Filters which HTTP transports are available and in what order.
Usage
add_filter( 'http_api_transports', 'filter_function_name_4810', 10, 3 ); function filter_function_name_4810( $transports, $args, $url ){ // filter... return $transports; }
- $transports(string[])
- Array of HTTP transports to check.
Default: array contains 'curl' and 'streams', in that order - $args(array)
- HTTP request arguments.
- $url(string)
- The URL to request.
Changelog
Since 3.7.0 | Introduced. |
Where the hook is called
http_api_transports
wp-includes/class-http.php 530
$request_order = apply_filters( 'http_api_transports', $transports, $args, $url );