Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/13/2016 06:21:10 PM (9 years ago)
Author:
dcavins
Message:

Add query support for hierarchical groups.

Adds a new column to the groups table, parent_id, and support for
querying by parent_id via groups_get_groups() and
bp_has_groups().

Does not add any front-facing hierarchy functionality—that is left for
now to plugins.

Props dcavins, boonebgorges, r-a-y, djpaul, mercime.

See #3961.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/classes/class-bp-groups-template.php

    r11091 r11095  
    166166            'include'            => false,
    167167            'exclude'            => false,
     168            'parent_id'          => null,
    168169            'search_terms'       => '',
    169170            'group_type'         => '',
     
    225226                'include'            => $include,
    226227                'exclude'            => $exclude,
     228                'parent_id'          => $parent_id,
    227229                'populate_extras'    => $populate_extras,
    228230                'update_meta_cache'  => $update_meta_cache,
Note: See TracChangeset for help on using the changeset viewer.