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.
No Comments