Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/02/2013 06:29:06 PM (11 years ago)
Author:
boonebgorges
Message:

Introduces bp_*_user_last_activity() functions

User last activity data is currently stored as usermeta, with BuddyPress
making multiple calls directly to the usermeta table to get that data. These
new functions provide a central, standardized way to update and fetch
last_activity information. This makes it easier for plugins to update user
activity programatically in a future-compatible way.

Having this set of functions will facilitate any changes associated with #5128,
whose goal is to move last_activity data out of usermeta altogether.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/includes/testcase.php

    r7237 r7334  
    214214        $user_id = $this->factory->user->create( $args );
    215215
    216         update_user_meta( $user_id, 'last_activity', $last_activity );
     216        bp_update_user_last_activity( $user_id, $last_activity );
    217217
    218218        if ( bp_is_active( 'xprofile' ) ) {
Note: See TracChangeset for help on using the changeset viewer.