WpOrg\Requests
Session::post
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() Session::post code WP 6.9.1
public function post($url, $headers = [], $data = [], $options = []) {
return $this->request($url, $headers, $data, Requests::POST, $options);
}