{"id":11337828,"date":"2019-03-21T06:20:13","date_gmt":"2019-03-21T06:20:13","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/feature-request-multisite\/"},"modified":"2019-03-21T06:20:13","modified_gmt":"2019-03-21T06:20:13","slug":"feature-request-multisite","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/feature-request-multisite\/","title":{"rendered":"Feature Request: Multisite"},"content":{"rendered":"<p>Hi,<br \/>\nwe are running a multsite with ~50 sites and are going to use your plugin. While studying a bit the code, we would have a feature request.<\/p>\n<p>The plugin uses <code>get_option()<\/code> to store options, so settings can only be made per site. While for a single site doing those settings is not a big task, it becomes a bit more effort to repeat the same steps (in our case, the same settings apply to each site) 50 times.<\/p>\n<p>For our use case it would be great if (when network activated) you could add settings on network level. For me the ideal workflow then would be something like:<\/p>\n<pre><code>$options = get_option(&#039;option_key&#039;);\nif (! $options &amp;&amp; is_multisite) {\n  $options = get_site_option(&#039;option_key&#039;);\n}<\/code><\/pre>\n<p>If this would be the way, you are trying to read the current settings, you would first check for the &#8220;local\/single site&#8221; settings. if we are in a network and no settings have been set locally, you would try to fetch the options from the network settings.<\/p>\n<p>Thank you for the nice plugin and for considering this request,<br \/>\nDavid.<\/p>\n","protected":false},"template":"","class_list":["post-11337828","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11337828","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11337828\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=11337828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}