Requests::patch() public WP 1.0
Send a PATCH request
Note: Unlike {@see post} and {@see put}, $headers is required, as the specification recommends that should send an ETag
{} Это метод класса: Requests{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$result = Requests::patch( $url, $headers, $data, $options );
- $url (обязательный)
- -
- $headers (обязательный)
- -
- $data **
- -
По умолчанию: array() - $options **
- -
По умолчанию: array()
Код Requests::patch() Requests::patch WP 5.7.1
public static function patch($url, $headers, $data = array(), $options = array()) {
return self::request($url, $headers, $data, self::PATCH, $options);
}