bp_activity_get_sitewide

Retrieve sitewide activity.

Description

(object) bp_activity_get_sitewide( (string) $args = '' ); 

You should use bp_activity_get() instead

Returns (object)

$activity The activity/activities object

Parameters (1)

0. $args — Optional. (string) => ''
The args.

Usage

  1. if ( !function_exists( 'bp_activity_get_sitewide' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/deprecated/1.2.php'; 
  3.  
  4. // The args. 
  5. $args = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_activity_get_sitewide($args); 
  9.  

Defined (1)

The function is defined in the following location(s).

/bp-core/deprecated/1.2.php  
  1. function bp_activity_get_sitewide( $args = '' ) { 
  2. _deprecated_function( __FUNCTION__, '1.2', 'bp_activity_get()' ); 
  3.  
  4. $defaults = array( 
  5. 'max' => false, // Maximum number of results to return 
  6. 'page' => 1, // page 1 without a per_page will result in no pagination. 
  7. 'per_page' => false, // results per page 
  8. 'sort' => 'DESC', // sort ASC or DESC 
  9. 'display_comments' => false, // false for no comments. 'stream' for within stream display, 'threaded' for below each activity item 
  10.  
  11. 'search_terms' => false, // Pass search terms as a string 
  12. 'show_hidden' => false, // Show activity items that are hidden site-wide? 
  13.  
  14. /** 
  15. * Pass filters as an array: 
  16. * array( 
  17. * 'user_id' => false, // user_id to filter on 
  18. * 'object' => false, // object to filter on e.g. groups, profile, status, friends 
  19. * 'action' => false, // action to filter on e.g. new_wire_post, new_forum_post, profile_updated 
  20. * 'primary_id' => false, // object ID to filter on e.g. a group_id or forum_id or blog_id etc. 
  21. * 'secondary_id' => false, // secondary object ID to filter on e.g. a post_id 
  22. * ); 
  23. */ 
  24. 'filter' => array() 
  25. ); 
  26.  
  27. $args = wp_parse_args( $args, $defaults ); 
  28.