• Hi,
    I am running a wp3.1 Multisite blog network, with buddypress.
    I have done quite some reserach on this topic, and couldn’t find a good answer to this yet:
    When a new user registers to the networks main site (mainsite.com), I have disabled the functionality to create a blog while signing up. I want the users to create theyr blogs when they sign in the first time.
    The current process on how WPMU works, is that when a user registers, and does not create his sub-blog straight away, he get’s the mainblog assigned as his primary blog.
    The user then creates his own sub-blog, and it I can’t find a function/code to assign this new blog as his primary one automated.
    There a re a few plyugins, with which the siteadmin can do this manually through the dashboard, but I would really need this to be automated.

    Anyclues, ideas, gudies on how to accomplish this?

    merci

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter sortofme

    (@sortofme)

    I found this:
    update_user_meta( get_current_user_id(), 'primary_blog', $blog->userblog_id );

    am I on the right path?

    There a re a few plyugins, with which the siteadmin can do this manually through the dashboard,

    this is built in, not a plugin.

    I found this:
    update_user_meta( get_current_user_id(), ‘primary_blog’, $blog->userblog_id );

    am I on the right path?

    yes. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘switching primary blog to newly created blog’ is closed to new replies.