The MU forums have moved to WordPress.org

Plugin auto activation on blog creation (11 posts)

  1. shooshpakka
    Member
    Posted 17 years ago #

    Is it possible to auto activate plugins for every new created blog? How?

    I appreciate any help.

  2. andrea_r
    Moderator
    Posted 17 years ago #

    Put them in the mu-plugins folder instead of the regular plugins folder.

  3. shooshpakka
    Member
    Posted 17 years ago #

    Bad solution. Users can't change anything in plugin's options in that case. Can't disable plugins too.

  4. andrea_r
    Moderator
    Posted 17 years ago #

    Is there a specific plugin you mean? Because I have certain ones in the mu folder and users can access their menus just fine.

  5. stutley
    Member
    Posted 17 years ago #

    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.

  6. shooshpakka
    Member
    Posted 17 years ago #

    Stutley, this must be a solition. A bit of hacking, but... should try it.

  7. stutley
    Member
    Posted 17 years ago #

    Yup .. Let us know how it goes :)

  8. honewatson
    Member
    Posted 17 years ago #

    /wp-admin/upgrade-schema.php

  9. conpeo
    Member
    Posted 17 years ago #

    dig...

    Any idea to hack upgrade-schema for auto activate plugin?

  10. lunabyte
    Member
    Posted 17 years ago #

    Yeah, put it in the mu-plugins directory. that's what it's for.

  11. drmike
    Member
    Posted 17 years ago #

    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.

About this Topic

  • Started 17 years ago by shooshpakka
  • Latest reply from drmike