Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/14/2017 01:32:34 AM (9 years ago)
Author:
dcavins
Message:

BP_Groups_Group::get(): Add search_column parameter.

Allow developers to specify which column should be searched and where
wildcard characters should be placed in BP_Groups_Group::get().

Fixes #7418.

File:
1 edited

Legend:

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

    r11363 r11383  
    710710        'parent_id'          => null,           // Get groups that are children of the specified group(s).
    711711        'search_terms'       => false,          // Limit to groups that match these search terms.
     712        'search_columns'     => array(),        // Select which columns to search.
    712713        'group_type'         => '',             // Array or comma-separated list of group types to limit results to.
    713714        'group_type__in'     => '',             // Array or comma-separated list of group types to limit results to.
     
    730731        'parent_id'          => $r['parent_id'],
    731732        'search_terms'       => $r['search_terms'],
     733        'search_columns'     => $r['search_columns'],
    732734        'group_type'         => $r['group_type'],
    733735        'group_type__in'     => $r['group_type__in'],
Note: See TracChangeset for help on using the changeset viewer.