Support » Fixing WordPress » New users not showing on member page until they sign in

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    For member page content, I recommend you ask in the BuddyPress dedicated support forum where the plugin developers and expert users will be able to help you.

    I can help you with saving data in the user meta table when a user logs in. This aspect would relate to altering core WP functionality and would be independent from BuddyPress. You would hook the ‘wp_login’ action, which passes the logged in user’s WP_User object to your callback as the second parameter (user_login is first). You are after the user ID, $user->ID if the passed user object is collected with $user. Use the ID to call update_user_meta() in order to save the current timestamp. I prefer saving Unix timestamps over more human readable formats. They are easier to do math upon, like if it has been 3 days since last login or similar.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.