Skip to:
Content
Pages
Categories
Search
Top
Bottom

Extra information form after email confirmation


  • rohitran
    Participant

    @rohitran

    Hi,
    I am using Buddypress and it’s working perfectly.But i need extra information from user just after completing confirmation email.
    so for this i created one extra tab (Extra information) in profile fields (Admin side).so can you please suggest me what i should do for calling (Extra information) form field just after confirmation email.
    This is the following way-
    1)User registration form
    2)Email confirmation
    3)Extra information form

Viewing 1 replies (of 1 total)

  • Prashant Singh
    Participant

    @prashantvatsh

    Hi,

    You can use this plugin https://buddydev.com/plugins/bp-autologin-on-activation/

    So once they will confirm their account using activation link they will be auto logged-in and then will be sent to their profile where they can fill there details. But if you want to make them redirect directly to the extra profile tab then use this snippet:

    add_filter("login_redirect","ps_redirect_to_profile",1,3);
     
    function ps_redirect_to_profile($redirect_to_calculated,$redirect_url,$user)
    {
    if(empty($redirect_to_calculated))
    $redirect_to_calculated=admin_url();
     
    if(!is_site_admin($user->user_login))
    return bp_core_get_user_domain($user->ID ).'/edit/2';
    else
    return $redirect_to_calculated;
     
    }

    I guess 2 is the tab extra profile, if not then change to the actual one.

    Thanks

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar