bp_activity_action_personal_feed

Load a user's personal activity feed.

Description

bp_activity_action_personal_feed(); 

Usage

  1. if ( !function_exists( 'bp_activity_action_personal_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_personal_feed(); 
  7.  

Defined (1)

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

/bp-activity/bp-activity-actions.php  
  1. function bp_activity_action_personal_feed() { 
  2. if ( ! bp_is_user_activity() || ! bp_is_current_action( 'feed' ) ) { 
  3. return false; 
  4.  
  5. // Setup the feed. 
  6. buddypress)->activity->feed = new BP_Activity_Feed( array( 
  7. 'id' => 'personal',  
  8.  
  9. /** translators: Personal activity RSS title - "[Site Name] | [User Display Name] | Activity" */ 
  10. 'title' => sprintf( __( '%1$s | %2$s | Activity', buddypress ), bp_get_site_name(), bp_get_displayed_user_fullname() ),  
  11.  
  12. 'description' => sprintf( __( 'Activity feed for %s.', buddypress ), bp_get_displayed_user_fullname() ),  
  13. 'activity_args' => 'user_id=' . bp_displayed_user_id() 
  14. ) );