The MU forums have moved to WordPress.org

NewBlog Default Setting and $blog_id (2 posts)

  1. darkshape
    Member
    Posted 15 years ago #

    Hi Guys,

    i'm just fighting around with a simple Plugin for WPmu, which makes some basic settings for each new created blog,
    as discussed here in a thread too.
    As base i use the Plugin which you can find everywhere in the web.

    Basic functionality works
    without problems. But i also need to "preconfigure" the Role-Manager Plugin.
    Making the right settings is not the problem - but i need to get the blog_id of the new created blog - the $blog_id does not contain anything, and i can't find a way to get the id from the just created blog...

    slainte,
    henning

  2. DeannaS
    Member
    Posted 15 years ago #

    If you use the wpmu_new_blog hook, and the switch_to_blog($blog_id) function, you should have the blog id available to you.

About this Topic

  • Started 15 years ago by darkshape
  • Latest reply from DeannaS