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.

Do you like SeventhQueen's articles? Follow on social!
No Comments
Comments to: Show users in members directory right after account activation

    Your email address will not be published. Required fields are marked *

    This site uses Akismet to reduce spam. Learn how your comment data is processed.