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
- The topic ‘Network enable?’ is closed to new replies.