WooCommerce::legacy_rest_api_is_available
Check if the Legacy REST API plugin is active (and thus the Legacy REST API is available).
Method of the class: WooCommerce{}
No Hooks.
Returns
true|false.
Usage
$WooCommerce = new WooCommerce(); $WooCommerce->legacy_rest_api_is_available();
WooCommerce::legacy_rest_api_is_available() WooCommerce::legacy rest api is available code WC 10.6.2
public function legacy_rest_api_is_available() {
return class_exists( 'WC_Legacy_REST_API_Plugin', false );
}