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.


Top ↑

Source

File: wp-includes/class-wp-http.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.