BP_Groups_Member::refresh_total_member_count_for_group( int $group_id )

Refresh the total_member_count for a group.


Parameters Parameters

$group_id

(int) (Required) ID of the group.


Top ↑

Return Return

(bool|int) True on success, false on failure.


Source Source

File: bp-groups/classes/class-bp-groups-member.php

	public static function refresh_total_member_count_for_group( $group_id ) {
		return groups_update_groupmeta( $group_id, 'total_member_count', (int) BP_Groups_Group::get_total_member_count( $group_id ) );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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