WpOrg\Requests
Session::post()
Send a POST request
Method of the class: Session{}
No Hooks.
Return
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.6.2
public function post($url, $headers = [], $data = [], $options = []) { return $this->request($url, $headers, $data, Requests::POST, $options); }