Skip to:

Hook into First Login of User

Viewing 1 replies (of 1 total)

  • peterverkooijen


    I’d like to know this as well. You could probably put this on activate.php somehow.

    Also the standard WPMU welcome email is sent on first login. That works via a function in wpmu-functions.php:

    function wpmu_welcome_user_notification($user_id, $password, $meta = '') {
    global $current_site;

    wp_mail($user->user_email, $subject, $message, $message_headers);
    return true;

    I don’t see a hook in that function. It’s called/triggered from function wpmu_activate_signup in the same php file.

    wpmu_activate_signup is called from function bp_core_screen_activation in bp-core-activation.php.

    Perhaps you could add a redirect there to the mandatory extra fields? There are already some if statements there, one with this:

    bp_core_redirect( $bp->root_domain . '/' . BP_ACTIVATION_SLUG );

    You could add your own? Just guessing, wouldn’t know what it would look like…

Viewing 1 replies (of 1 total)
  • The topic ‘Hook into First Login of User’ is closed to new replies.
Skip to toolbar