Requests_Session::patch() WordPress Method
The Requests_Session::patch() method is used to send a PATCH request to a WordPress site. This is useful for making changes to a WordPress site without having to go through the admin interface. The PATCH request is sent as a JSON object, and the response is also returned as a JSON object.
Requests_Session::patch( $url, $headers, $data = array(), $options = array() ) #
Send a PATCH request
Contents
Description
Note: Unlike post and put, $headers
is required, as the specification recommends that should send an ETag
Source
File: wp-includes/Requests/Session.php
public function patch($url, $headers, $data = array(), $options = array()) { return $this->request($url, $headers, $data, Requests::PATCH, $options); }
Expand full source codeCollapse full source codeView on TracView on GitHub