bp_get_member_activity_feed_link()
Return the member activity feed link.
Description
Return
(string) $link The member activity feed link.
Source
File: bp-activity/bp-activity-template.php
3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 | function bp_get_member_activity_feed_link() { // Single member activity feed link. if ( bp_is_profile_component() || bp_is_current_action( 'just-me' ) ) { $link = bp_displayed_user_domain() . bp_get_activity_slug() . '/feed/' ; // Friend feed link. } elseif ( bp_is_active( 'friends' ) && bp_is_current_action( bp_get_friends_slug() ) ) { $link = bp_displayed_user_domain() . bp_get_activity_slug() . '/' . bp_get_friends_slug() . '/feed/' ; // Group feed link. } elseif ( bp_is_active( 'groups' ) && bp_is_current_action( bp_get_groups_slug() ) ) { $link = bp_displayed_user_domain() . bp_get_activity_slug() . '/' . bp_get_groups_slug() . '/feed/' ; // Favorites activity feed link. } elseif ( 'favorites' === bp_current_action() ) { $link = bp_displayed_user_domain() . bp_get_activity_slug() . '/favorites/feed/' ; // Mentions activity feed link. } elseif ( ( 'mentions' === bp_current_action() ) && bp_activity_do_mentions() ) { $link = bp_displayed_user_domain() . bp_get_activity_slug() . '/mentions/feed/' ; // No feed link. } else { $link = '' ; } /** * Filters the member activity feed link. * * @since BuddyPress 1.0.0 * * @param string $link URL for the member activity feed. */ return apply_filters( 'bp_get_activities_member_rss_link' , $link ); } |
Changelog
Version | Description |
---|---|
BuddyPress 1.2.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.