本文整理匯總了PHP中BP_Groups_Group::get_total_member_count方法的典型用法代碼示例。如果您正苦於以下問題:PHP BP_Groups_Group::get_total_member_count方法的具體用法?PHP BP_Groups_Group::get_total_member_count怎麽用?PHP BP_Groups_Group::get_total_member_count使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類BP_Groups_Group
的用法示例。
在下文中一共展示了BP_Groups_Group::get_total_member_count方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: groups_get_total_member_count
/**
* Get the member count for a group.
*
* @param int $group_id Group ID.
*
* @return int Count of confirmed members for the group.
*/
function groups_get_total_member_count($group_id)
{
return BP_Groups_Group::get_total_member_count($group_id);
}
示例2: refresh_total_member_count_for_group
/**
* Refresh the total_member_count for a group.
*
* @since BuddyPress (1.8.0)
*
* @param int $group_id ID of the group.
*
* @return bool True on success, false on failure.
*/
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));
}