@gosselind
2 years, 6 months ago
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' );