wp_http_supports( array $capabilities = array(), string $url = null )

Determines if there is an HTTP Transport that can process this request.


Parameters

$capabilities

(Optional) Array of capabilities to test or a wp_remote_request() $args array.

Default value: array()

$url

(Optional) If given, will check if the URL requires SSL and adds that requirement to the capabilities array.

Default value: null


Return

(bool)


Source

File: wp-includes/http.php

function wp_http_supports( $capabilities = array(), $url = null ) {
	return true;
}


Changelog

Changelog
Version Description
3.2.0 Introduced.