WpOrg\Requests

Session::patch()publicWP 1.0

Send a PATCH request

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

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

Хуков нет.

Возвращает

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

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

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

Код Session::patch() WP 6.3.1

public function patch($url, $headers, $data = [], $options = []) {
	return $this->request($url, $headers, $data, Requests::PATCH, $options);
}