W3cubDocs

/WordPress

apply_filters_deprecated( ‘http_api_transports’, string[] $transports, array $args, string $url )

Filters which HTTP transports are available and in what order.

Parameters

$transportsstring[]
Array of HTTP transports to check. Default array contains 'curl' and 'streams', in that order.
$argsarray
HTTP request arguments.
$urlstring
The URL to request.

Source

$request_order = apply_filters_deprecated( 'http_api_transports', array( $transports, $args, $url ), '6.4.0' );

Changelog

Version Description
6.4.0 Use WpOrgRequestsRequests::get_transport_class()
3.7.0 Introduced.

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