Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 1 replies (of 1 total)

  • gosselind
    Participant

    @gosselind

    Hi shanebp,

    Thanks a lot ! Adding these lines in my functions.php solved the problem

    function update_last_activity_on_activation( $user ) {
    
    	
    	if ( empty( $user ) ) {
    		return false;
    	}
    
    	if ( is_array( $user ) ) {
    		$user_id = $user['user_id'];
    	} else {
    		$user_id = $user;
    	}
    
    	if ( empty( $user_id ) ) {
    		return false;
    	}
    
    	bp_update_user_last_activity( $user_id, bp_core_current_time() );
    
    }
    add_action( 'bp_core_activated_user', 'update_last_activity_on_activation' );
Viewing 1 replies (of 1 total)
Skip to toolbar