{"id":10314034,"date":"2018-05-23T15:48:14","date_gmt":"2018-05-23T15:48:14","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/network-enable\/"},"modified":"2018-05-23T15:48:14","modified_gmt":"2018-05-23T15:48:14","slug":"network-enable","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/network-enable\/","title":{"rendered":"Network enable?"},"content":{"rendered":"<p>Hi there,<\/p>\n<p>This plugin is great.  Does just what it says it does.  I&#8217;ve been looking into modifying it a bit to allow for network-wide settings rather than per-blog settings.<\/p>\n<p>By simply changing get_option, update_option, and delete_option to get_site_option, update_site_option, and delete_site_option and moving the admin page to the network dashboard (as well as perhaps one or two tiny changes I&#8217;m forgetting), I have this working.<\/p>\n<p>However, what I have not been able to figure out is how to preserve the ability to enable\/disable routes for specific plugins.  If a plugin is not network active, then it doesn&#8217;t add its routes to the API and they are not pulled in with:<br \/>\n<code>$all_routes         = array_keys( $wp_rest_server-&gt;get_routes() );<\/code><\/p>\n<p>Unfortunately for us, the whole reason we were checking this plugin out was to block anonymous API access for everything except specific plugins.<\/p>\n<p>Any plans to add this functionality?<\/p>\n<p>Thank you!<br \/>\nCorey<\/p>\n","protected":false},"template":"","class_list":["post-10314034","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10314034","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\/10314034\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10314034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}