Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Hook into First Login of User


peterverkooijen
Participant

@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…

Skip to toolbar