The MU forums have moved to WordPress.org

hook for new blog (4 posts)

  1. fransimo
    Member
    Posted 17 years ago #

    Is there some hook to know a new blog is created?

  2. drmike
    Member
    Posted 17 years ago #

    I see the following in the wpmu_create_blog function:

    do_action( 'wpmu_new_blog', $blog_id, $user_id );

    do_action is the hooks, right?

  3. dronamraju
    Member
    Posted 16 years ago #

    hello experts,

    I am using this function however i am noticing that the user_id is not getting passed? Why would that be ? Am I not defining my function properly?
    my action handler prototype is

    "function ne_blog_signup_sync($blog_id, $user_id)"

    but the user_id variable is coming up blank.

  4. dronamraju
    Member
    Posted 16 years ago #

    nevermind. I figured it out. I need to pass more parameters to the "add_action" call

About this Topic

  • Started 17 years ago by fransimo
  • Latest reply from dronamraju