Helping you Build Your Own Social Network!

Faster, better and easier!

BP Autologin on Activation

(3 posts) (2 voices)

Tags:

No tags yet.


  1. how can I redirect users to their profile/edit profile page on activation. This way i can make users to fill out the mandatory profile fields.

    thanks,
    gwu

    Posted 9 months ago #
  2. Hi Gwu, you can use the following code

    add_filter('bpdev_autoactivate_redirect_url','my_activation_login_redirect',10,2);
    
    function my_activation_login_redirect($where,$user_id){
    global $bp;
    return bp_core_get_user_domain($user_id).$bp->profile->slug.'/edit/'.
    }

    That should it it.

    Posted 9 months ago #
  3. super. u r a star

    Posted 9 months ago #

Reply

You must log in to post.