public function post( $path, $data, $params = array() ) {

		$this->set_request_args( array(
			'method' => 'POST',
			'path'   => $path,
			'params' => $params,
			'body'   => $data,
		) );

		return $this->do_request();
	}
public function post( $path, $data, $params = array() ) {

		$this->set_request_args( array(
			'method' => 'POST',
			'path'   => $path,
			'params' => $params,
			'body'   => $data,
		) );

		return $this->do_request();
	}
public function post ( $ path , $ data , $ params = array ( ) ) { $ this -> set_request_args ( array ( 'method' => 'POST' , 'path' => $ path , 'params' => $ params , 'body' => $ data , ) ) ; return $ this -> do_request ( ) ; }
Perform a POST request to the custom endpoint

Path can either be:

string (your_string) - GET /endpoint/your_string
array (1,2,3) - GET /endpoint/1/2/3

Params are added after the endpoint

@since 2.0
@param string|array $path request path
@param array $data request body entity to be JSON encoded
@param array $params request params
@return array|object custom resource
Perform a POST request to the custom endpoint