WC_Helper_API::put()public staticWC 1.0

Wrapper for self::request().

Method of the class: WC_Helper_API{}

No Hooks.

Return

Array. The response object from wp_safe_remote_request().

Usage

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

WC_Helper_API::put() code WC 8.7.0

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