Making Extension Plugins Compatible with Classic Commerce

Readers should note that the main file now current in Classic Commerce is called, logically, classic-commerce.php. Therefore, my code given above should now be changed to:

if ( (is_plugin_active('woocommerce/woocommerce.php'))  || (is_plugin_active('classic-commerce/classic-commerce.php')) ) {
            add_action( 'admin_bar_menu', 'ocws_wcab_newmenu',1000 );
        } // end of testing for WooCommerce and Classic Commerce
4 Likes