WPCommerce MultiDomain WPCommerce MultiDomain
  • 0
    • No products in the cart.
    • Home
    • Features
    • Pricing
    • Documentation
    • FAQ
    • Articles
    • Contact
    • My account
    WPCommerce MultiDomain WPCommerce MultiDomain
  • 0
    • No products in the cart.
    • Home
    • Features
    • Pricing
    • Documentation
    • FAQ
    • Articles
    • Contact
    • My account
    WPCommerce MultiDomain

    Documentation

    Create separate options for each domain

    Most of the WordPress Plugins and Themes use WordPress options to storage individual setup. Such data provides subsequent guidance to the code for further processing and outputs of texts, images, variables.

    When using WPCommerce MultiDomain, by default, all domains share the same options. Some exceptions apply, to ensure each shop uses its own:

    • Blog name
    • Blog Description
    • Active theme
    • Widgets
    • Menus
    • WooCommerce settings
    • etc.

    This is enough for the majority of the sites, as provides enough flexibility to customize each of the domain. If necessary, include more options in the ignore list is possible.
    The proper way to add options in the ignore list is through a WordPress filter woomd/ignore_options. The filter needs inserted through a custom file on /wp-contet/mu-plugins/.

    Through the filter, an exact option name can be provided, or if needed to match a group of options, the % char match any substring:
    theme_logo
    plugin_options
    credits_page
    divi_% ( this match any option name that starts with divi_ followed by any string combination )

    For example, if multiple domains use the same theme, that requires to show differently from a domain to another. Presuming the theme use theme_option to store the settings, the following code provides the ignoring function, so allows customization of the theme on each of the domains, using individual options:

        add_filter ( 'woomd/ignore_options' , '__woomd_ignore_options' );
        function __woomd_ignore_options( $ignore_options )
            {
                if ( is_array ( $ignore_options ) )
                    {
                        $ignore_options[]  =   'theme_option';
                    }
                return $ignore_options;
            }
    

    Leave a Reply Cancel reply

    Recent Posts

    • Selecting the Checkout Type option – Single Checkout / Each Store February 25, 2025
    • Easy Multilingual and Multi-Currency WooCommerce Shop November 18, 2023
    • Why use WP Multi Domain for WooCommerce with default WordPress instance over MultiSite environment May 9, 2022

    Social Links

    @2025. All Rights Reserved

    Terms & Conditions | Privacy Policy

    Latest Articles

    • Selecting the Checkout Type option – Single Checkout / Each Store
      The WordPress WPCommerce Multi-Domain plugin includes powerful global shopping cart functionality, allowing customers to add...
    • Easy Multilingual and Multi-Currency WooCommerce Shop
      Using the WooCommerce Multi Domain, managing the WooCommerce Products has never been easier. Multiple Domains...
    • Why use WP Multi Domain for WooCommerce with default WordPress instance over MultiSite environment
      Creating a centralised network of shops isn’t a straightforward implementation. That requires a lot of...

    Nsp Code Follow

    Nsp-Code official Twitter account

    nspcode
    nspcode Nsp Code @nspcode ·
    17 Nov

    Manage Orders From All Your WooCommerce Shops in a Single Control Panel

    https://single-site.wpglobalcart.com/manage-all-your-woocommerce-orders-from-a-single-central-dashboard/

    #WooCommerce #WordPress #WPGlobalCart

    Reply on Twitter 1990407186384662843 Retweet on Twitter 1990407186384662843 Like on Twitter 1990407186384662843 Twitter 1990407186384662843
    nspcode Nsp Code @nspcode ·
    14 Jul

    QTranslate Synchronize – Seamless Multilingual Ordering in Advanced Post Types Order
    #WordPress #apto #woocommerce

    https://www.nsp-code.com/qtranslate-synchronize-seamless-multilingual-ordering-in-advanced-post-types-order/

    Reply on Twitter 1944683290755039470 Retweet on Twitter 1944683290755039470 Like on Twitter 1944683290755039470 Twitter 1944683290755039470
    Load More
    30% OFF
    BLACK FRIDAY SALE
    Unique offer for our WPCommerce Multi-Domain - Developer License!
    One-time payment and Unlimited usage.

    Offer available when purchasing Developer License or Upgrade to Developer.

    wpcmd-30-dev