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
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.