Requests::patch( $url,  $headers,  $data = array(),  $options = array() )

In this article

Send a PATCH request

Description

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

Source

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

User Contributed Notes

You must log in before being able to contribute a note or feedback.