Skip to:

Opened 13 years ago

Closed 13 years ago

#3088 closed enhancement (no action required)

hooks near SQL creation

Reported by: ghost_ufa's profile Ghost_ufa Owned by:
Milestone: 1.5 Priority: normal
Severity: Version: 1.2.8
Component: Groups Keywords:


file bp-groups-classes.php class BP_Groups_Group, each member function like get_alphabetically:
want hook to add SQL conditions. What the problem: I have group hierarhy plugin and want ability to show only top-level groups separatelly.

Change History (3)

#1 follow-up: @r-a-y
13 years ago

Use the "groups_get_groups" filter located in bp-groups.php, then write your custom group fetch function and return your custom groups.

#2 in reply to: ↑ 1 @Ghost_ufa
13 years ago

Replying to r-a-y:

Use the "groups_get_groups" filter

Yes by now I do it but it tends to rewrite ALL group fetch code from buddypress to my plugin and remeke it after each BP update

#3 @DJPaul
13 years ago

  • Milestone changed from Awaiting Review to 1.3
  • Resolution set to invalid
  • Status changed from new to closed

In trunk/1.3, you can use the bp_core_get_paged_users_sql and bp_core_get_paged_users_sql filters.

Note: See TracTickets for help on using tickets.