bp_activity_action_sitewide_feed

Load the sitewide activity feed.

Description

bp_activity_action_sitewide_feed(); 

Usage

  1. if ( !function_exists( 'bp_activity_action_sitewide_feed' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-activity/bp-activity-actions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_activity_action_sitewide_feed(); 
  7.  

Defined (1)

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

/bp-activity/bp-activity-actions.php  
  1. function bp_activity_action_sitewide_feed() { 
  2. $bp =buddypress); 
  3.  
  4. if ( ! bp_is_activity_component() || ! bp_is_current_action( 'feed' ) || bp_is_user() || ! empty( $bp->groups->current_group ) ) 
  5. return false; 
  6.  
  7. // Setup the feed. 
  8. buddypress)->activity->feed = new BP_Activity_Feed( array( 
  9. 'id' => 'sitewide',  
  10.  
  11. /** translators: Sitewide activity RSS title - "[Site Name] | Site Wide Activity" */ 
  12. 'title' => sprintf( __( '%s | Site-Wide Activity', buddypress ), bp_get_site_name() ),  
  13.  
  14. 'description' => __( 'Activity feed for the entire site.', buddypress ),  
  15. 'activity_args' => 'display_comments=threaded' 
  16. ) );