http_api_transports WordPress Filter Hook
The http_api_transports hook is used to modify the HTTP API request transport methods. This hook is called before the HTTP API is initialized, and can be used to add or remove request transport methods.
apply_filters( 'http_api_transports', string[] $transports , array $args , string $url ) #
Filters which HTTP transports are available and in what order.
Parameters
- $transports
(string[])Array of HTTP transports to check. Default array contains 'curl' and 'streams', in that order.
- $args
(array)HTTP request arguments.
- $url
(string)The URL to request.
Source
Changelog
Version | Description |
---|---|
3.7.0 | Introduced. |