WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp http supports

Description

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

Parameters

$capabilities
(array) (optional) Array of capabilities to test or a wp_remote_request() $args array.
Default: array()
$url
(string) (optional) Optional. If given, will check if the URL requires SSL and adds that requirement to the capabilities array.
Default: null

Return Values

(boolean) 

Change Log

Since: 3.2

Source File

wp_http_supports() is located in wp-includes/http.php