wordpress / latest / hooks / http_api_transports.html

apply_filters( 'http_api_transports', string[] $transports, array $args, string $url )

Filters which HTTP transports are available and in what order.

Parameters

$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.

Source

File: wp-includes/class-wp-http.php. View all references

$request_order = apply_filters( 'http_api_transports', $transports, $args, $url );

Changelog

Version Description
3.7.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/http_api_transports