[buddypress-trac] [BuddyPress] #5018: Update user meta field 'total_group_count' when user joins group

buddypress-trac noreply at wordpress.org
Sat May 25 06:10:34 UTC 2013

#5018: Update user meta field 'total_group_count' when user joins group
 Reporter:  mukkundthanki  |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Groups         |    Version:  1.7
 Severity:  normal         |   Keywords:
 In buddypress if user leaves group we update user meta 'total_group_count'
 field but it missed when user joins group.

 And somehow my user count 'total_group_count' went in minus number. so, it
 is advisable to check
 if ( groups_is_user_member( $user_id, $group_id ) )

 before update count,

 we have done it when user joins group.

 Is it appropriate to prevent minus count ?? I have just advised.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5018>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list