WpOrg\Requests

Requests::patch()public staticWP 1.0

Send a PATCH request

Note: Unlike \WpOrg\Requests\Requests::post() and \WpOrg\Requests\Requests::put(), $headers is required, as the specification recommends that should send an ETag

Method of the class: Requests{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = Requests::patch( $url, $headers, $data, $options );
$url (required)
-
$headers (required)
-
$data **
-
Default: []
$options **
-
Default: []

Requests::patch() code WP 6.6.2

public static function patch($url, $headers, $data = [], $options = []) {
	return self::request($url, $headers, $data, self::PATCH, $options);
}