{"id":2848,"date":"2024-02-29T14:43:02","date_gmt":"2024-02-29T14:43:02","guid":{"rendered":"https:\/\/wpcode.com\/?post_type=wpcode_doc&#038;p=2848"},"modified":"2024-02-29T14:43:02","modified_gmt":"2024-02-29T14:43:02","slug":"how-to-use-the-multisite-addon","status":"publish","type":"wpcode_doc","link":"https:\/\/wpcode.com\/docs\/how-to-use-the-multisite-addon\/","title":{"rendered":"How to use the Multisite Addon"},"content":{"rendered":"<p>The WPCode Multisite addon enables you to manage snippets in a network-level interface. This makes it possible to execute snippets across all sites of a multisite network from one single panel.\u00a0 In this article we&#8217;ll dive into how to set up the multisite addon and which network-specific options you have available.<\/p>\n<p>Please note: the multisite addon is currently only available on the <a href=\"https:\/\/library.wpcode.com\/pricing\">WPCode Elite plan<\/a>.<\/p>\n<h2>Setting Up the Multisite Addon<\/h2>\n<p>Getting started with the multisite addon is easily from the WPCode settings panel. To get started please install and Network Activate the WPCode premium plugin. Once the plugin is network-activated you&#8217;ll see a new WPCode menu under the Network Settings menu (make sure you are in the Network admin, not the subsite admin). You can also access the settings from the list of plugins by clicking on the Settings item under the WPCode Pro plugin as shown below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2849\" src=\"https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-multisite-settings.png\" alt=\"wpcode multisite settings\" width=\"3204\" height=\"2064\" srcset=\"https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-multisite-settings.png 3204w, https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-multisite-settings-300x193.png 300w, https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-multisite-settings-1024x660.png 1024w, https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-multisite-settings-768x495.png 768w, https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-multisite-settings-1536x989.png 1536w, https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-multisite-settings-2048x1319.png 2048w\" sizes=\"auto, (max-width: 3204px) 100vw, 3204px\" \/><\/p>\n<p>On the settings page, paste your license key and click on the Verify Key button. You can grab your license key at any time from your purchase receipt email or the <a href=\"https:\/\/library.wpcode.com\/account\/downloads\/\" target=\"_blank\" rel=\"noopener\">Downloads page<\/a> in your WPCode account.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2850\" src=\"https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-activate-network-license.png\" alt=\"\" width=\"2064\" height=\"958\" srcset=\"https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-activate-network-license.png 2064w, https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-activate-network-license-300x139.png 300w, https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-activate-network-license-1024x475.png 1024w, https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-activate-network-license-768x356.png 768w, https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-activate-network-license-1536x713.png 1536w, https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-activate-network-license-2048x951.png 2048w\" sizes=\"auto, (max-width: 2064px) 100vw, 2064px\" \/><\/p>\n<p>Once your key is activated and confirmed, the page will reload and the only thing left is to click the &#8220;Install Addon Now&#8221; button &#8211; that will automatically install and activate the WPCode multisite addon. Once the addon is activated you&#8217;ll see a familiar Code Snippets menu in the network admin where you can manage network-wide snippets.<\/p>\n<p>In case the automatic addon installation fails for any reason you can always download the addon from the <a href=\"https:\/\/library.wpcode.com\/account\/downloads\/\" target=\"_blank\" rel=\"noopener\">Downloads area<\/a> in your WPCode account.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2851\" src=\"https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-one-click-install-multisite-addon.png\" alt=\"Install the multisite addon by clicking the Install Addon Now button\" width=\"2250\" height=\"1124\" srcset=\"https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-one-click-install-multisite-addon.png 2250w, https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-one-click-install-multisite-addon-300x150.png 300w, https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-one-click-install-multisite-addon-1024x512.png 1024w, https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-one-click-install-multisite-addon-768x384.png 768w, https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-one-click-install-multisite-addon-1536x767.png 1536w, https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-one-click-install-multisite-addon-2048x1023.png 2048w\" sizes=\"auto, (max-width: 2250px) 100vw, 2250px\" \/><\/p>\n<h2>Multisite Network specific conditional logic<\/h2>\n<p>Adding a snippet at the network level is mostly the same as using the WPCode plugin regularly but there are some changes. You cannot use site-specific conditional logic in the network context (page-specific conditions, specific taxonomy terms, categories, etc.).<\/p>\n<p>There is also a new type of conditional logic that allows you to choose on which sites the snippet will be inserted to:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2852\" src=\"https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-multisite-conditional-logic-sites.png\" alt=\"Network conditional logic options for choosing sites\" width=\"2104\" height=\"968\" srcset=\"https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-multisite-conditional-logic-sites.png 2104w, https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-multisite-conditional-logic-sites-300x138.png 300w, https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-multisite-conditional-logic-sites-1024x471.png 1024w, https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-multisite-conditional-logic-sites-768x353.png 768w, https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-multisite-conditional-logic-sites-1536x707.png 1536w, https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-multisite-conditional-logic-sites-2048x942.png 2048w\" sizes=\"auto, (max-width: 2104px) 100vw, 2104px\" \/><\/p>\n<p>This allows you to limit network-wide snippets to specific sites for greater control.<\/p>\n<h2>Network-specific settings<\/h2>\n<p>When you enable the multisite addon you can only manage Access Control settings at network level. On the Access Control settings page you will notice that you can also choose the Administrator role in this context since for a multisite network there is also the Super Administrator role &#8211; the role you have if you can access the network admin panel. This setting enables you to control if site-level administrators can manage WPCode snippets and which features they have access to in the subsites.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2854\" src=\"https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-network-specific-settings.png\" alt=\"Network specific settings\" width=\"2590\" height=\"626\" srcset=\"https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-network-specific-settings.png 2590w, https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-network-specific-settings-300x73.png 300w, https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-network-specific-settings-1024x247.png 1024w, https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-network-specific-settings-768x186.png 768w, https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-network-specific-settings-1536x371.png 1536w, https:\/\/wpcode.com\/wp-content\/uploads\/2024\/02\/wpcode-network-specific-settings-2048x495.png 2048w\" sizes=\"auto, (max-width: 2590px) 100vw, 2590px\" \/><\/p>\n<p>You also have 2 extra settings that are network-specific:<\/p>\n<p>1. Hide WPCode on subsites: this option will hide the WPCode menu from all subsites and you will only be able to manage WPCode at network level.<\/p>\n<p>2. Disable access for Administrators: enabling this will reset the permissions for administrators so that only super-administrators can manage WPCode and you will be able to choose using the role picker fields above exactly which features administrators will be allowed to manage.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The WPCode Multisite addon enables you to manage snippets in a network-level interface. This makes it possible to execute snippets across all sites of a multisite network from one single panel.\u00a0 In this article we&#8217;ll dive into how to set up the multisite addon and which network-specific options you have available. Please note: the multisite [&hellip;]<\/p>\n","protected":false},"author":2,"template":"","class_list":["post-2848","wpcode_doc","type-wpcode_doc","status-publish","hentry","wpcode_doc_category-functionality"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/wpcode.com\/wp-json\/wp\/v2\/wpcode_doc\/2848","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpcode.com\/wp-json\/wp\/v2\/wpcode_doc"}],"about":[{"href":"https:\/\/wpcode.com\/wp-json\/wp\/v2\/types\/wpcode_doc"}],"author":[{"embeddable":true,"href":"https:\/\/wpcode.com\/wp-json\/wp\/v2\/users\/2"}],"version-history":[{"count":2,"href":"https:\/\/wpcode.com\/wp-json\/wp\/v2\/wpcode_doc\/2848\/revisions"}],"predecessor-version":[{"id":2855,"href":"https:\/\/wpcode.com\/wp-json\/wp\/v2\/wpcode_doc\/2848\/revisions\/2855"}],"wp:attachment":[{"href":"https:\/\/wpcode.com\/wp-json\/wp\/v2\/media?parent=2848"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}