BP_Groups_Member::refresh_total_group_count_for_user( int $user_id )
Refresh the total_group_count for a user.
Description
Parameters
- $user_id
-
(Required) ID of the user.
Return
(bool) True on success, false on failure.
Source
File: bp-groups/classes/class-bp-groups-member.php
public static function refresh_total_group_count_for_user( $user_id ) { return bp_update_user_meta( $user_id, 'total_group_count', (int) self::total_group_count( $user_id ) ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.8.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.