Skip to content
Browse themesMy account

Show users in members directory right after account activation

Show users in members directory right after account activation

By default in BuddyPress, members won't show in your Members directory if they don't log in first.

If you want users to show in your site after they activate their account or if you activated users using a plugin, you have to add this piece of code to your child theme/functions.php

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"));
}

After adding this code, users will appear in your Members directory without the need to log in first.

Home page of a BuddyPress community site built with the KLEO AI Collective demo
BuddyPress

How to Build a BuddyPress Community Site with WordPress in 2026

Build a community site on WordPress with BuddyPress: hosting, components, theme, forums, events and paid memberships, step by step, with...

8 Popular BuddyPress Plugins for WordPress Communities
BuddyPress

8 Popular BuddyPress Plugins for WordPress Communities

The BuddyPress plugins worth knowing for forums, events, member search, media, chat, docs and profiles, with versions and installs checked...