BP_Activity_Activity::get_last_updated()

Get the date/time of last recorded activity.

Description

Return

(string) ISO timestamp.

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
BuddyPress 1.2.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.