apply_filters( ‘use_curl_transport’, bool $use_class, array $args )

In this article

Filters whether cURL can be used as a transport for retrieving a URL.

Parameters

$use_classbool
Whether the class can be used. Default true.
$argsarray
An array of request arguments.

Source

return apply_filters( 'use_curl_transport', true, $args );

Changelog

VersionDescription
2.7.0Introduced.

User Contributed Notes

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