Error thrown

Call to undefined method WooCommerce::is_rest_api_request()