• kiran4wp

    (@kiran4wordpress)


    Hi All,

    Actually I am trying to configure the multisite in wordpress and succesfully configured.

    Actually my doubt is how to configure a single plugin for two different sub sites(sub domains) in multisite. I am asking this question because if we get a situation like need to change the code in plugin for one domain it may effects other one. So in that situation how we will achieve our requirement.

    For themes we can create two themes and enable two themes for two seperate sub domains but where as for plugins I think we can’t follow the same.

    So need help asap…

Viewing 4 replies - 1 through 4 (of 4 total)
  • Without knowing any specifics of your plugin’s features, you should be able to create a setting for your plugin to drive behavior on a per-site basis. Check out this codex page: https://codex.www.ads-software.com/Settings_API. I believe that just adds a page under “Settings” in the wp-admin. If you have a bunch of settings, you can make an entire menu for them using https://codex.www.ads-software.com/Function_Reference/add_menu_page and https://codex.www.ads-software.com/Function_Reference/add_submenu_page

    jkhongusc

    (@jkhongusc)

    Plugins can be enabled on a per-site or a network (all site) basis.

    Network enabled plugins are done on the network console. Note that you will not see the plugin enabled on the site console.

    Thread Starter kiran4wp

    (@kiran4wordpress)

    Thank you jcmaci03 and jkhongusc for your replies.

    Actually I am able to activate plugins individually in both sub domains. My doubt here is suppose if I got a requirement to use same plugin folder for two different sub domains for the purposes which is having slight different requirements. So if we customize the code to achieve one purpose in the plugin folder it may effect other sub domain. So in that case what we need to do?

    jkhongusc

    (@jkhongusc)

    Kiran –
    The answer is it depends on the plugin. A plugin that is written for multisite use sometimes allows configuration settings. Those settings can be global or per site. Per site settings allow the plugin to behave differently for each site.

    If you are writing your own plugin then you need to learn about the WP functions that affect site vs network metadata.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to Confgure plugins individually in multisite?’ is closed to new replies.