WPDev.one
Core Function
View Source on Trac ↗

wp_http_supports()

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

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

Parameters 1 required

Name / Type Description
$capabilities
array

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

string

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

Required

Return Value

(bool)
bool

Function Information

Since Version
3.2.0
Source File
wp-includes/http.php
Advertisement