BP_Groups_Member::refresh_total_group_count_for_user( int $user_id )

Refresh the total_group_count for a user.


Description Description


Parameters Parameters

$user_id

(Required) ID of the user.


Top ↑

Return Return

(bool) True on success, false on failure.


Top ↑

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

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.