Skip to:
Content

BuddyPress.org

Opened 16 years ago

Closed 15 years ago

#3088 closed enhancement (no action required)

hooks near SQL creation

Reported by: Ghost_ufa Owned by:
Priority: normal Milestone: 1.5
Component: Groups Version: 1.2.8
Severity: Keywords:
Cc:

Description

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
16 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
16 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
15 years ago

  • Milestone Awaiting Review1.3
  • Resolutioninvalid
  • Status newclosed

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.