Changeset 7906 for trunk/bp-activity/bp-activity-functions.php
- Timestamp:
- 02/17/2014 01:07:32 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-functions.php
r7905 r7906 899 899 function bp_activity_get( $args = '' ) { 900 900 $defaults = array( 901 'max' => false, // Maximum number of results to return902 'page' => 1, // page 1 without a per_page will result in no pagination.903 'per_page' => false, // results per page904 'sort' => 'DESC', // sort ASC or DESC905 'display_comments' => false, // false for no comments. 'stream' for within stream display, 'threaded' for below each activity item906 907 'search_terms' => false, // Pass search terms as a string908 'meta_query' => false, // Filter by activity meta. See WP_Meta_Query for format909 'show_hidden' => false, // Show activity items that are hidden site-wide?910 'exclude' => false, // Comma-separated list of activity IDs to exclude911 'in' => false, // Comma-separated list or array of activity IDs to which you want to limit the query912 'spam' => 'ham_only', // 'ham_only' (default), 'spam_only' or 'all'.901 'max' => false, // Maximum number of results to return 902 'page' => 1, // page 1 without a per_page will result in no pagination. 903 'per_page' => false, // results per page 904 'sort' => 'DESC', // sort ASC or DESC 905 'display_comments' => false, // false for no comments. 'stream' for within stream display, 'threaded' for below each activity item 906 907 'search_terms' => false, // Pass search terms as a string 908 'meta_query' => false, // Filter by activity meta. See WP_Meta_Query for format 909 'show_hidden' => false, // Show activity items that are hidden site-wide? 910 'exclude' => false, // Comma-separated list of activity IDs to exclude 911 'in' => false, // Comma-separated list or array of activity IDs to which you want to limit the query 912 'spam' => 'ham_only', // 'ham_only' (default), 'spam_only' or 'all'. 913 913 'update_meta_cache' => true, 914 914 … … 932 932 if ( !$activity = wp_cache_get( 'bp_activity_sitewide_front', 'bp' ) ) { 933 933 $args = array( 934 'page' => $page,935 'per_page' => $per_page,936 'max' => $max,937 'sort' => $sort,938 'search_terms' => $search_terms,939 'meta_query' => $meta_query,940 'filter' => $filter,941 'display_comments' => $display_comments,942 'show_hidden' => $show_hidden,943 'spam' => $spam,934 'page' => $page, 935 'per_page' => $per_page, 936 'max' => $max, 937 'sort' => $sort, 938 'search_terms' => $search_terms, 939 'meta_query' => $meta_query, 940 'filter' => $filter, 941 'display_comments' => $display_comments, 942 'show_hidden' => $show_hidden, 943 'spam' => $spam, 944 944 'update_meta_cache' => $update_meta_cache, 945 945 ); … … 989 989 function bp_activity_get_specific( $args = '' ) { 990 990 $defaults = array( 991 'activity_ids' => false, // A single activity_id or array of IDs.992 'display_comments' => false, // true or false to display threaded comments for these specific activity items993 'max' => false, // Maximum number of results to return994 'page' => 1, // page 1 without a per_page will result in no pagination.995 'per_page' => false, // results per page996 'show_hidden' => true, // When fetching specific items, show all997 'sort' => 'DESC', // sort ASC or DESC998 'spam' => 'ham_only', // Retrieve items marked as spam991 'activity_ids' => false, // A single activity_id or array of IDs. 992 'display_comments' => false, // true or false to display threaded comments for these specific activity items 993 'max' => false, // Maximum number of results to return 994 'page' => 1, // page 1 without a per_page will result in no pagination. 995 'per_page' => false, // results per page 996 'show_hidden' => true, // When fetching specific items, show all 997 'sort' => 'DESC', // sort ASC or DESC 998 'spam' => 'ham_only', // Retrieve items marked as spam 999 999 'update_meta_cache' => true, 1000 1000 ); … … 1003 1003 1004 1004 $get_args = array( 1005 'page' => $page,1006 'per_page' => $per_page,1007 'max' => $max,1008 'sort' => $sort,1009 'display_comments' => $display_comments,1010 'show_hidden' => $show_hidden,1011 'in' => $activity_ids,1012 'spam' => $spam,1005 'page' => $page, 1006 'per_page' => $per_page, 1007 'max' => $max, 1008 'sort' => $sort, 1009 'display_comments' => $display_comments, 1010 'show_hidden' => $show_hidden, 1011 'in' => $activity_ids, 1012 'spam' => $spam, 1013 1013 'update_meta_cache' => $update_meta_cache, 1014 1014 );
Note: See TracChangeset
for help on using the changeset viewer.