Multisite: Suggestion for Show settings pages only to network admins
-
Hi.
Thanks for the great plugin.I use it in a multisite installation and I didn’t want the admins of each blog to see the Settings->BWM settings page.
In order to achieve that I made a change and though I share it.So in file bwp-minify/bwp-minify.php from line 25 change the function bwp_minify_init_admin() to the following:
function bwp_minify_init_admin() { global $bwp_minify; if (current_user_can('edit_plugins')) { $bwp_minify->init_admin(); } }
This way only the super administrator will see the BWM setting link.
- The topic ‘Multisite: Suggestion for Show settings pages only to network admins’ is closed to new replies.