WpOrg\Requests

Requests::patchpublic 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

Метод класса: Requests{}

Хуков нет.

Возвращает

null. Ничего (null).

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

$result = Requests::patch( $url, $headers, $data, $options );
$url(обязательный)
.
$headers(обязательный)
.
$data
.
По умолчанию: []
$options
.
По умолчанию: []

Код Requests::patch() WP 7.0.4

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