WC_Helper_API::get()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::get( $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::get() WC 6.6.1

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