WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

wp_http_supports() WP 3.2.0

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

Хуков нет.

Возвращает

true/false.

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

wp_http_supports( $capabilities, $url );
$capabilities(массив)
Array of capabilities to test or a wp_remote_request() $args array.
По умолчанию: array()
$url(строка)
If given, will check if the URL requires SSL and adds that requirement to the capabilities array.
По умолчанию: null

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

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

Код wp_http_supports() WP 5.5.1

wp-includes/http.php
<?php
function wp_http_supports( $capabilities = array(), $url = null ) {
	$http = _wp_http_get_object();

	$capabilities = wp_parse_args( $capabilities );

	$count = count( $capabilities );

	// If we have a numeric $capabilities array, spoof a wp_remote_request() associative $args array.
	if ( $count && count( array_filter( array_keys( $capabilities ), 'is_numeric' ) ) == $count ) {
		$capabilities = array_combine( array_values( $capabilities ), array_fill( 0, $count, true ) );
	}

	if ( $url && ! isset( $capabilities['ssl'] ) ) {
		$scheme = parse_url( $url, PHP_URL_SCHEME );
		if ( 'https' === $scheme || 'ssl' === $scheme ) {
			$capabilities['ssl'] = true;
		}
	}

	return (bool) $http->_get_first_available_transport( $capabilities );
}