WpOrg\Requests

Session::postpublicWP 1.0

Send a POST request

Method of the class: Session{}

No Hooks.

Returns

null. Nothing (null).

Usage

$Session = new Session();
$Session->post( $url, $headers, $data, $options );
$url(required)
.
$headers
.
Default: []
$data
.
Default: []
$options
.
Default: []

Session::post() code WP 6.8.1

public function post($url, $headers = [], $data = [], $options = []) {
	return $this->request($url, $headers, $data, Requests::POST, $options);
}