BP_Activity_Activity::get_last_updated()
Get the date/time of last recorded activity.
Description Description
Return Return
(string) ISO timestamp.
Source Source
File: bp-activity/classes/class-bp-activity-activity.php
public static function get_last_updated() {
global $wpdb;
$bp = buddypress();
return $wpdb->get_var( "SELECT date_recorded FROM {$bp->activity->table_name} ORDER BY date_recorded DESC LIMIT 1" );
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.2.0 | Introduced. |