WpOrg\Requests
Requests::patch
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.
Returns
null
. Nothing (null).
Usage
$result = Requests::patch( $url, $headers, $data, $options );
- $url(required)
- .
- $headers(required)
- .
- $data
- .
Default: [] - $options
- .
Default: []
Requests::patch() Requests::patch code WP 6.8.1
public static function patch($url, $headers, $data = [], $options = []) { return self::request($url, $headers, $data, self::PATCH, $options); }