HIde certain plugins in "Premium Plugins" with Supporter
WPMU DEV Community
HIde certain plugins in "Premium Plugins" with Supporter
Staff
10613 pointsLike some sort of WPMU DEV God"Mindblowingly helpful memberLifetime member
masonjames
Sales & Support Lead
—
30th April 2010 15:30
Hey guys,
I'm using Supporter with Premium Plugins enabled. The thing I'd like to do is hide a couple of my "auto-activate" for supporter plugins from the Premium Plugins page. In other words, when someone becomes a supporter, the plugin auto-activates, but they are not given access to deactivate the plugin. These plugins are necessary for their site to function as expected and I'd just rather not have them getting the option to break that - plus, it just makes things a little more complicated.
To further complicate it, I'd like to be able to do this on a per-plugin basis. I know I could hide the entire premium plugins sub-menu, but there are some that I'd like them to have control over.
Am I being too picky here? What's the best way to do this? I could add these plugins to the mu folder (as all blogs must become supporters if they want to continue after the free trial) but some of them are not written to be work from this folder. Thanks!
I'm using Supporter with Premium Plugins enabled. The thing I'd like to do is hide a couple of my "auto-activate" for supporter plugins from the Premium Plugins page. In other words, when someone becomes a supporter, the plugin auto-activates, but they are not given access to deactivate the plugin. These plugins are necessary for their site to function as expected and I'd just rather not have them getting the option to break that - plus, it just makes things a little more complicated.
To further complicate it, I'd like to be able to do this on a per-plugin basis. I know I could hide the entire premium plugins sub-menu, but there are some that I'd like them to have control over.
Am I being too picky here? What's the best way to do this? I could add these plugins to the mu folder (as all blogs must become supporters if they want to continue after the free trial) but some of them are not written to be work from this folder. Thanks!
Responses (2)
Lead Developer — 30th April 2010 16:55 #
Why don't you just activate them sitewide and modify the plugin to not work unless is_supporter()?
Otherwise you would need to add that functionality into supporter-plugins.php.
Sales & Support Lead — 30th April 2010 18:39 #
Agreed. Thinking about it again, that's the easiest way to do this.
Become a member