WpOrg\Requests

Requests::has_capabilities()public staticWP 1.0

Checks to see if we have a transport for the capabilities requested.

Supported capabilities can be found in the Capability{} interface as constants.

Example usage: Requests::has_capabilities([Capability::SSL => true]).

Method of the class: Requests{}

No Hooks.

Return

true|false. Whether the transport has the requested capabilities.

Usage

$result = Requests::has_capabilities( $capabilities );
$capabilities(array)
-
Default: []

Requests::has_capabilities() code WP 6.6.2

public static function has_capabilities(array $capabilities = []) {
	return self::get_transport_class($capabilities) !== '';
}