WC_Helper_API::post()public staticWC 1.0

{} It's a method of the class: WC_Helper_API{}

No Hooks.

Return

Array. The response object from wp_safe_remote_request().

Usage

$result = WC_Helper_API::post( $endpoint, $args );
$endpoint(string) (required)
The helper API endpoint to request.
$args(array)
Arguments passed to wp_remote_request().
Default: array()

Code of WC_Helper_API::post() WC 6.7.0

public static function post( $endpoint, $args = array() ) {
	$args['method'] = 'POST';
	return self::request( $endpoint, $args );
}