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

In this article

This hook has been deprecated. Use WpOrgRequestsRequests::get_transport_class() instead.

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

VersionDescription
6.4.0Use WpOrgRequestsRequests::get_transport_class()
3.7.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.