Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/15/2016 02:21:54 AM (10 years ago)
Author:
boonebgorges
Message:

Introduce Group Types API.

Modeled on the Member Types API, Group Types allow developers to register
arbitrary group categorizations, and assign one or more of these types to a
given group. BuddyPress stores this information in a custom taxonomy on the
root blog.

Group queries can be filtered by group type, by using the group_type,
group_type__in, and group_type__not_in parameters in the bp_has_groups()
template loop function stack.

Props Mamaduka, boonebgorges, dcavins.
See #6784.

File:
1 edited

Legend:

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

    r10520 r10766  
    167167                        'exclude'           => false,
    168168                        'search_terms'      => '',
     169                        'group_type'         => '',
     170                        'group_type__in'     => '',
     171                        'group_type__not_in' => '',
    169172                        'meta_query'        => false,
    170173                        'populate_extras'   => true,
     
    219222                                'search_terms'      => $search_terms,
    220223                                'meta_query'        => $meta_query,
     224                                'group_type'         => $group_type,
     225                                'group_type__in'     => $group_type__in,
     226                                'group_type__not_in' => $group_type__not_in,
    221227                                'include'           => $include,
    222228                                'exclude'           => $exclude,
Note: See TracChangeset for help on using the changeset viewer.