WordPress at a glance
filter is not described

http_api_transports filter-hook . WP 3.7.0

Filters which HTTP transports are available and in what order.

Usage

add_filter( 'http_api_transports', 'filter_function_name_7500', 10, 3 );
function filter_function_name_7500( $transports, $args, $url ){
	// filter...

	return $transports;
}
$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.

Список изменений

С версии 3.7.0 Введена.

Где вызывается хук

WP_Http::_get_first_available_transport()
http_api_transports
wp-includes/class-http.php 530
$request_order = apply_filters( 'http_api_transports', $transports, $args, $url );

Где используется хук в ядре WordPress

Использование не найдено.