This topic has 1 reply, 2 voices, and was last updated 11 years by sv1aud.

  • Author
  • #3153
     SQadmin
    Keymaster

    If you want users to show in your site after they activate their account or you activated it using a plugin you have to add this piece of code to your sweetdate-child/functions.php and an user no longer needs to login in order for him to appear in the site.

    COPY CODE
    
    add_action('bp_core_activated_user', 'kleo_add_member_activity');
    function kleo_add_member_activity($user_id)
    {
    	add_user_meta( $user_id, 'last_activity', date("Y-m-d H:i:s"));
    }
    
    #3169
     sv1aud
    Participant

    Nice tip thanks

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Show users in site right before account activation’ is closed to new replies.

Log in with your credentials

Forgot your details?