Changeset 7897 for trunk/bp-groups/bp-groups-functions.php
- Timestamp:
- 02/16/2014 09:36:18 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/bp-groups/bp-groups-functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-functions.php
r7894 r7897 436 436 437 437 $defaults = array( 438 'type' => false, // active, newest, alphabetical, random, popular, most-forum-topics or most-forum-posts439 'order' => 'DESC', // 'ASC' or 'DESC'440 'orderby' => 'date_created', // date_created, last_activity, total_member_count, name, random441 'user_id' => false, // Pass a user_id to limit to only groups that this user is a member of442 'include' => false, // Only include these specific groups (group_ids)443 'exclude' => false, // Do not include these specific groups (group_ids)444 'search_terms' => false, // Limit to groups that match these search terms445 'meta_query' => false, // Filter by groupmeta. See WP_Meta_Query for syntax446 'show_hidden' => false, // Show hidden groups to non-admins447 'per_page' => 20, // The number of results to return per page448 'page' => 1, // The page to return if limiting per page449 'populate_extras' => true, // Fetch meta such as is_banned and is_member438 'type' => false, // active, newest, alphabetical, random, popular, most-forum-topics or most-forum-posts 439 'order' => 'DESC', // 'ASC' or 'DESC' 440 'orderby' => 'date_created', // date_created, last_activity, total_member_count, name, random 441 'user_id' => false, // Pass a user_id to limit to only groups that this user is a member of 442 'include' => false, // Only include these specific groups (group_ids) 443 'exclude' => false, // Do not include these specific groups (group_ids) 444 'search_terms' => false, // Limit to groups that match these search terms 445 'meta_query' => false, // Filter by groupmeta. See WP_Meta_Query for syntax 446 'show_hidden' => false, // Show hidden groups to non-admins 447 'per_page' => 20, // The number of results to return per page 448 'page' => 1, // The page to return if limiting per page 449 'populate_extras' => true, // Fetch meta such as is_banned and is_member 450 450 'update_meta_cache' => true, // Pre-fetch groupmeta for queried groups 451 451 ); … … 454 454 455 455 $groups = BP_Groups_Group::get( array( 456 'type' => $r['type'],457 'user_id' => $r['user_id'],458 'include' => $r['include'],459 'exclude' => $r['exclude'],460 'search_terms' => $r['search_terms'],461 'meta_query' => $r['meta_query'],462 'show_hidden' => $r['show_hidden'],463 'per_page' => $r['per_page'],464 'page' => $r['page'],465 'populate_extras' => $r['populate_extras'],456 'type' => $r['type'], 457 'user_id' => $r['user_id'], 458 'include' => $r['include'], 459 'exclude' => $r['exclude'], 460 'search_terms' => $r['search_terms'], 461 'meta_query' => $r['meta_query'], 462 'show_hidden' => $r['show_hidden'], 463 'per_page' => $r['per_page'], 464 'page' => $r['page'], 465 'populate_extras' => $r['populate_extras'], 466 466 'update_meta_cache' => $r['update_meta_cache'], 467 'order' => $r['order'],468 'orderby' => $r['orderby'],467 'order' => $r['order'], 468 'orderby' => $r['orderby'], 469 469 ) ); 470 470
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)