WC_Helper_API::get()
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::get( $endpoint, $args );
- $endpoint(string) (required)
- The helper API endpoint to request.
- $args(array)
- Arguments passed to wp_remote_request().
Default: array()
WC_Helper_API::get() WC Helper API::get code WC 9.3.3
public static function get( $endpoint, $args = array() ) { $args['method'] = 'GET'; return self::request( $endpoint, $args ); }