W3cubDocs

/WordPress

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

Send a PATCH request

Description

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

Source

File: wp-includes/class-requests.php

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

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/requests/patch