a
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudanti.
a
Follow Me
Search
woogc/single_checkout/split_order/blog_id - WooCommerce MultiSite Global Cart
15649
documentation-template-default,single,single-documentation,postid-15649,theme-awake,cookies-not-set,eltd-core-1.1,woocommerce-no-js,awake child-child-ver-1.0.0,awake-ver-1.0,eltd-smooth-scroll,eltd-smooth-page-transitions,eltd-mimic-ajax,eltd-grid-1200,eltd-blog-installed,eltd-default-style,eltd-fade-push-text-top,eltd-header-standard,eltd-sticky-header-on-scroll-down-up,eltd-default-mobile-header,eltd-sticky-up-mobile-header,eltd-menu-item-first-level-bg-color,eltd-dropdown-slide-from-top,eltd-,eltd-fullscreen-search eltd-search-fade,eltd-side-menu-slide-from-right,wpb-js-composer js-comp-ver-6.3.0,vc_responsive
 

woogc/single_checkout/split_order/blog_id

WooCommerce MultiSite Global Cart / woogc/single_checkout/split_order/blog_id
Share on FacebookTweet about this on TwitterShare on Google+Share on LinkedInShare on TumblrPin on PinterestEmail this to someonePrint this page

woogc/single_checkout/split_order/blog_id

Name: woogc/single_checkout/split_order/blog_id
Type: Filter
Arguments: $blog_id, $status

The filter can be used to disable Order Split for specific Shop, when using Single Check-out and Split Order functionality.

The following code example, disable the split for shop ID’s 2:


    add_filter('woogc/single_checkout/split_order/blog_id', '__WooGC_single_checkout_split_order_blog_id', 10, 2);
    function __WooGC_single_checkout_split_order_blog_id( $_blog_id, $status )
        {
            
            if ( $_blog_id == 2 )
                $status = FALSE;
                
            return $status;   
        }

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