Title: Network enable?
Last modified: May 23, 2018

---

# Network enable?

 *  [cg923](https://wordpress.org/support/users/cg923/)
 * (@cg923)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/network-enable/)
 * Hi there,
 * This plugin is great. Does just what it says it does. I’ve been looking into 
   modifying it a bit to allow for network-wide settings rather than per-blog settings.
 * 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’m forgetting), I have
   this working.
 * 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’t add its routes to the API and they are not pulled in with:
    `
   $all_routes = array_keys( $wp_rest_server->get_routes() );`
 * Unfortunately for us, the whole reason we were checking this plugin out was to
   block anonymous API access for everything except specific plugins.
 * Any plans to add this functionality?
 * Thank you!
    Corey

Viewing 1 replies (of 1 total)

 *  Thread Starter [cg923](https://wordpress.org/support/users/cg923/)
 * (@cg923)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/network-enable/#post-10314280)
 * As an update, we’ve decided to simply add plugin routes to the $all_routes array.
   Not an elegant fix but it works for us. Still, this would be an awesome feature
   to have.

Viewing 1 replies (of 1 total)

The topic ‘Network enable?’ is closed to new replies.

 * ![](https://ps.w.org/disable-json-api/assets/icon-256x256.png?rev=1001011)
 * [Disable REST API](https://wordpress.org/plugins/disable-json-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/disable-json-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/disable-json-api/)
 * [Active Topics](https://wordpress.org/support/plugin/disable-json-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/disable-json-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/disable-json-api/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [cg923](https://wordpress.org/support/users/cg923/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/network-enable/#post-10314280)
 * Status: not resolved