Requests_Session::post() WordPress Method

The Requests_Session::post() method is used to send a POST request to a specified Wordpress URL. This is useful for submitting data to forms or sending JSON payloads to Wordpress APIs.

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

Send a POST request


Source

File: wp-includes/Requests/Session.php

	public function post($url, $headers = array(), $data = array(), $options = array()) {
		return $this->request($url, $headers, $data, Requests::POST, $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.