Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/05/2017 12:00:40 AM (8 years ago)
Author:
dcavins
Message:

Add 'slug' parameter to BP_Groups_Group::get().

Add $slug parameter to groups_get_groups() and its underlying
function BP_Groups_Group::get(). Find a group or groups by passing a
single slug, a comma- or space-separated list of slugs, or any array of
slugs.

Fixes #7496.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-functions.php

    r11447 r11523  
    709709        'exclude'            => false,          // Do not include these specific groups (group_ids).
    710710        'parent_id'          => null,           // Get groups that are children of the specified group(s).
     711        'slug'               => array(),        // Find a group or groups by slug.
    711712        'search_terms'       => false,          // Limit to groups that match these search terms.
    712713        'search_columns'     => array(),        // Select which columns to search.
     
    729730        'include'            => $r['include'],
    730731        'exclude'            => $r['exclude'],
     732        'slug'               => $r['slug'],
    731733        'parent_id'          => $r['parent_id'],
    732734        'search_terms'       => $r['search_terms'],
Note: See TracChangeset for help on using the changeset viewer.