Is it possible to auto activate plugins for every new created blog? How?
I appreciate any help.
Is it possible to auto activate plugins for every new created blog? How?
I appreciate any help.
Put them in the mu-plugins folder instead of the regular plugins folder.
Bad solution. Users can't change anything in plugin's options in that case. Can't disable plugins too.
Is there a specific plugin you mean? Because I have certain ones in the mu folder and users can access their menus just fine.
I haven't tried it, but I think you have to activate them by adding them to the table-options when users sign up for a new blog.
Try to activate a plugin, then check which options it adds in the blog's options table. Duplicate those options to the signup query.
Stutley, this must be a solition. A bit of hacking, but... should try it.
Yup .. Let us know how it goes :)
/wp-admin/upgrade-schema.php
dig...
Any idea to hack upgrade-schema for auto activate plugin?
Yeah, put it in the mu-plugins directory. that's what it's for.
For plugins that are placed in the mu-plugins subdirectory but still don't "turn on" for new blogs, I just add in the MySQL table creation commands to the function create_empty_blog within wp-includes/wpmu-functions.php file.
I'e tried placing them into upgrade-schema.php but never could get them to pick up unless it's one of the original tables.