The last_activity user metadata is not mirrored by default anymore as of BuddyPress 7.0.0

Hi BuddyPress Plugin/Theme developers,

Since BuddyPress 2.0.0, the primary storage location for the user last_activity information is the activity DB table. For backward compatibility reasons, we used to mirror that data into the usermeta DB table.

This means you could get the last date the user was active on the community site in 2 ways:

  • The right one using the bp_get_user_last_activity( $user_id ) function.
  • The deprecated one using bp_get_user_meta( $user_id, 'last_activity', false ) function.

Please note, starting in BuddyPress 7.0.0, we will stop mirroring the last_activity user metadata, meaning the only way to get the last date the user was active is by using bp_get_user_last_activity( $user_id ).

If your development absolutely needs this piece of information to also be available into the usermeta DB table, then you’ll need to use the following filter to keep it there:

add_filter( 'bp_use_legacy_user_query', '__return_true' );

To read more about this change, see #7882.

#7-0-0, #developers

Building Bridges between Students and Educators in Nepal

Arjun Bhattarai shares how he built the largest community website for students in Nepal at https://buddypress.org/2017/05/building-bridges-between-students-and-educators-in-nepal/

#case-study, #developers

A Community for Organising Sweden’s Largest Environmental NGO

Alexander Berthelsen shares his case study of the development journey through the years for Naturkontakt, Sweden’s Largest Environmental NGO, at https://buddypress.org/2017/05/naturkontakt-organising-swedens-largest-environmental-ngo/

#case-study, #developers

Largest Turkish Recipe Site Spiced Up with BuddyPress

Mustafa Uysal (Twitter: m_uysl) of Nefisyemektarifleri.com shares how they scale their BuddyPress site with ~2.2 Million users at https://buddypress.org/2017/05/largest-turkish-recipe-site-spiced-up-with-buddypress/

#case-study, #developers

Total Wellness Challenge: Fitness with BuddyPress

Tara Claeys (Twitter: design_tlc) of Design TLC, LLC kicks off our new series of BuddyPress case studies from Developers and Site Builders. Read all about it at Total Wellness Challenge: Fitness with BuddyPress

#case-study, #developers