bp_get_member_activity_feed_link

Return the member activity feed link.

Description

(string) bp_get_member_activity_feed_link(); 

Returns (string)

$link The member activity feed link.


Usage

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

Defined (1)

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

/bp-activity/bp-activity-template.php  
  1. function bp_get_member_activity_feed_link() { 
  2.  
  3. // Single member activity feed link. 
  4. if ( bp_is_profile_component() || bp_is_current_action( 'just-me' ) ) { 
  5. $link = bp_displayed_user_domain() . bp_get_activity_slug() . '/feed/'; 
  6.  
  7. // Friend feed link. 
  8. } elseif ( bp_is_active( 'friends' ) && bp_is_current_action( bp_get_friends_slug() ) ) { 
  9.  
  10. // Group feed link. 
  11. } elseif ( bp_is_active( 'groups' ) && bp_is_current_action( bp_get_groups_slug() ) ) { 
  12.  
  13. // Favorites activity feed link. 
  14. } elseif ( 'favorites' === bp_current_action() ) { 
  15. $link = bp_displayed_user_domain() . bp_get_activity_slug() . '/favorites/feed/'; 
  16.  
  17. // Mentions activity feed link. 
  18. } elseif ( ( 'mentions' === bp_current_action() ) && bp_activity_do_mentions() ) { 
  19. $link = bp_displayed_user_domain() . bp_get_activity_slug() . '/mentions/feed/'; 
  20.  
  21. // No feed link. 
  22. } else { 
  23. $link = ''; 
  24.  
  25. /** 
  26. * Filters the member activity feed link. 
  27. * @since 1.0.0 
  28. * @param string $link URL for the member activity feed. 
  29. */