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
{} It's a method of the class: Requests{}
No Hooks.
Return
null
. Null. Nothing.
Usage
$result = Requests::patch( $url, $headers, $data, $options );
- $url (required)
- -
- $headers (required)
- -
- $data **
- -
Default: array() - $options **
- -
Default: array()
Code of Requests::patch() Requests::patch WP 5.7
public static function patch($url, $headers, $data = array(), $options = array()) {
return self::request($url, $headers, $data, self::PATCH, $options);
}