I have setup a WP MU site and installed a plugin into the main MU site. I want this plugin enabled across all the sites and hidden from site admins if possible. I want the plugin settings to come from the super network site not site admins.
On my super admin plugins page I see this:
Notice the Network Activate link. I enabled it but new sites do not have the settings from the main site and the plug in is not hidden (it not as important if it’s hidden or not).
For the activation of your plugin you have to write few lines of code in the plugin.
The WordPress installation runs from wp-admin/install.php. What we are looking for is for certain actions to be triggered once the install is successful, so a good place to insert our code is right above this:
We see a code block that starts with:
I chose to insert our actions after the last extract statement. To activate the plugins, I added:
And for the hiding the plugin from the list of plugin:
You need to modify the code as per your users roles.
For plugin hide code you may refer to this