Changeset 13146 for trunk/src/bp-activity/bp-activity-functions.php
- Timestamp:
- 11/13/2021 03:16:36 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-functions.php
r13135 r13146 1784 1784 'sort' => 'DESC', // sort ASC or DESC. 1785 1785 'display_comments' => false, // False for no comments. 'stream' for within stream display, 'threaded' for below each activity item. 1786 1787 1786 'search_terms' => false, // Pass search terms as a string. 1788 1787 'meta_query' => false, // Filter by activity meta. See WP_Meta_Query for format. … … 1791 1790 'show_hidden' => false, // Show activity items that are hidden site-wide? 1792 1791 'exclude' => false, // Comma-separated list of activity IDs to exclude. 1793 'in' => false, // Comma-separated list or array of activity IDs to which you. 1794 // want to limit the query. 1792 'in' => false, // Comma-separated list or array of activity IDs to which you want to limit the query. 1795 1793 'spam' => 'ham_only', // 'ham_only' (default), 'spam_only' or 'all'. 1796 1794 'update_meta_cache' => true, 1797 1795 'count_total' => false, 1796 'count_total_only' => false, 1798 1797 'scope' => false, 1799 1798 … … 1813 1812 ); 1814 1813 1815 $activity = BP_Activity_Activity::get( array( 1816 'page' => $r['page'], 1817 'per_page' => $r['per_page'], 1818 'max' => $r['max'], 1819 'sort' => $r['sort'], 1820 'search_terms' => $r['search_terms'], 1821 'meta_query' => $r['meta_query'], 1822 'date_query' => $r['date_query'], 1823 'filter_query' => $r['filter_query'], 1824 'filter' => $r['filter'], 1825 'scope' => $r['scope'], 1826 'display_comments' => $r['display_comments'], 1827 'show_hidden' => $r['show_hidden'], 1828 'exclude' => $r['exclude'], 1829 'in' => $r['in'], 1830 'spam' => $r['spam'], 1831 'update_meta_cache' => $r['update_meta_cache'], 1832 'count_total' => $r['count_total'], 1833 'fields' => $r['fields'], 1834 ) ); 1814 $activity = BP_Activity_Activity::get( 1815 array( 1816 'page' => $r['page'], 1817 'per_page' => $r['per_page'], 1818 'max' => $r['max'], 1819 'sort' => $r['sort'], 1820 'search_terms' => $r['search_terms'], 1821 'meta_query' => $r['meta_query'], 1822 'date_query' => $r['date_query'], 1823 'filter_query' => $r['filter_query'], 1824 'filter' => $r['filter'], 1825 'scope' => $r['scope'], 1826 'display_comments' => $r['display_comments'], 1827 'show_hidden' => $r['show_hidden'], 1828 'exclude' => $r['exclude'], 1829 'in' => $r['in'], 1830 'spam' => $r['spam'], 1831 'update_meta_cache' => $r['update_meta_cache'], 1832 'count_total' => $r['count_total'], 1833 'count_total_only' => $r['count_total_only'], 1834 'fields' => $r['fields'], 1835 ) 1836 ); 1835 1837 1836 1838 /**
Note: See TracChangeset
for help on using the changeset viewer.