use_curl_transport WordPress Filter Hook
The use_curl_transport hook is used to send data to and receive data from a remote server using the cURL library. This hook can be used to communicate with APIs or to fetch data from remote servers.
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.
Source
Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |