The MU forums have moved to

Add data for new blogs (2 posts)

  1. MattiasWirf
    Posted 13 years ago #

    I'm trying to

    1. Activate plugins for new blogs, but the activation hook doesn't create the db tables I wan't (it does however work in the main blog). I have Enable plugins in the admin settings. In short I need the plugin to create it's db table when activated on sub blog.

    2. Add data from the main blog to sub blogs. I have tried to make it a normal plugin, and I have tried a mu-plugin using the hook using add_action('wpmu_new_blog', 'myfunction'). Th plugins run without errors but the db is still empty.

    Any ideas what I'm doing wrong? Why does the hooks work on main blog but not in sub blogs?

  2. tmoorewp
    Posted 13 years ago #

    Can you post the code you are using to pastebin or some such and give us a link? Without that, we'd be shooting in the dark to try and help.

About this Topic

  • Started 13 years ago by MattiasWirf
  • Latest reply from tmoorewp