efc9dc4c62
* Check WC_Legacy_API instead of WC_API as that seems to be cached by lightspeed servers. * Improve the detection of the legacy API: 1. Modify the autoloader so that it never loads the WC_API class. This is needed bacause the legacy REST API plugin itself does a "class_exists('WC_API')". The plugin itself will continue to load its own copy of the class without issues. 2. Detect the WC_Legacy_REST_API_Plugin class in the legacy API stub. This is a performant and bulletproof way to detect if the plugin is isntalled. * Rearrange code a bit --------- Co-authored-by: Nestor Soriano <konamiman@konamiman.com> |
||
---|---|---|
.. | ||
woo-ai | ||
woocommerce | ||
woocommerce-admin | ||
woocommerce-beta-tester | ||
woocommerce-blocks |