BP_Activity_Activity::get_last_updated()

Get the date/time of last recorded activity.


Description Description


Return Return

(string) ISO timestamp.


Top ↑

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" );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.