Check WPGlobalCart for WordPress MultiSite

Search
TOP

woogc/disable_global_cart

WooCommerce Global Cart - Single Site / woogc/disable_global_cart
Share on FacebookTweet about this on TwitterPin on Pinterest

woogc/disable_global_cart

Name: woogc/disable_global_cart
Type: Filter
Arguments: $is_disabled

The filter is being used to disable the Global Cart functionality.


    add_filter( 'woogc/disable_global_cart',     'WooGC_Disable_GlobalCart', 10, 2 );
    function  WooGC_Disable_GlobalCart ( $status, $_blog_id = '' )
        {
            
            return TRUE;   
        }

The code should be placed inside a php file on wp-content/mu-plugins folder.