Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/20/2017 12:56:53 AM (9 years ago)
Author:
dcavins
Message:

Add 'meta_id' orderby option to BP_Groups_Group::get().

Add meta_id orderby option to groups_get_groups() and its
underlying function BP_Groups_Group::get(). When searching for groups
by meta value, the found groups may now be ordered by the order in
which the found meta rows appear in the bp_groups_groupmeta table.

See #6014.

File:
1 edited

Legend:

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

    r11532 r11533  
    705705        'type'               => false,          // Active, newest, alphabetical, random, popular, most-forum-topics or most-forum-posts.
    706706        'order'              => 'DESC',         // 'ASC' or 'DESC'
    707         'orderby'            => 'date_created', // date_created, last_activity, total_member_count, name, random.
     707        'orderby'            => 'date_created', // date_created, last_activity, total_member_count, name, random, meta_id.
    708708        'user_id'            => false,          // Pass a user_id to limit to only groups that this user is a member of.
    709709        'include'            => false,          // Only include these specific groups (group_ids).
Note: See TracChangeset for help on using the changeset viewer.