apply_filters( 'use_curl_transport', bool $use_class, array $args )

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


Parameters

$use_class bool
Whether the class can be used. Default true.
$args array
An array of request arguments.

Top ↑

Source

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

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


Top ↑

Changelog

Changelog
Version Description
2.7.0 Introduced.

Top ↑

User Contributed Notes

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