Requests_Session::delete() WordPress Method

The Requests_Session::delete() method is used to make an HTTP DELETE request. This method is used to delete data from a server. The delete method can be used with both the WordPress REST API and the WordPress XML-RPC API.

Requests_Session::delete( $url,  $headers = array(),  $options = array() ) #

Send a DELETE request


Source

File: wp-includes/Requests/Session.php

	public function delete($url, $headers = array(), $options = array()) {
		return $this->request($url, $headers, null, Requests::DELETE, $options);
	}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.