[buddypress-trac] [BuddyPress] #4064: Adding hooks into group count functions in bp-groups-classes (incl. patch)

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Tue Mar 6 06:29:18 UTC 2012


#4064: Adding hooks into group count functions in bp-groups-classes (incl. patch)
-------------------------+-----------------------------
 Reporter:  drassi       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Core         |    Version:
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 I helped write a plugin that allows us to filter BP groups and was
 successfully able to use the bp_groups_get_(total/paged)_groups_sql hooks
 to modify the list of groups returned on the group directory.

 However, I was unable to modify the queries that returned the counts for
 "All Groups" and "My Groups" because there were no hooks in the bp-groups-
 classes.php get_total_group_count and total_group_count functions.  I
 wrote these small hooks in, and am submitting them to see if it'd be
 possible to get them included in BP core at some point.

 Here's the link to my raw diff and the github commit on our repo:
 http://173.203.96.126/buddypress-groupcount-hooks.diff
 https://github.com/OccupyWallStreet/nycga2/commit/08b83669375c312926e67848e67ec0224aa51e4f

 best,

 dan

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


More information about the buddypress-trac mailing list