groups_update_last_activity( int $group_id )

Update the last_activity meta value for a given group.


Description Description


Parameters Parameters

$group_id

(Optional) The ID of the group whose last_activity is being updated. Default: the current group's ID.


Top ↑

Return Return

(false|null) False on failure.


Top ↑

Source Source

File: bp-groups/bp-groups-functions.php

function groups_update_last_activity( $group_id = 0 ) {

	if ( empty( $group_id ) ) {
		$group_id = buddypress()->groups->current_group->id;
	}

	if ( empty( $group_id ) ) {
		return false;
	}

	groups_update_groupmeta( $group_id, 'last_activity', bp_core_current_time() );
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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