bp_activity_action_sitewide_feed()
Load the sitewide activity feed.
Description
Return
(bool) False on failure.
Source
File: bp-activity/actions/feeds.php
function bp_activity_action_sitewide_feed() {
$bp = buddypress();
if ( ! bp_is_activity_component() || ! bp_is_current_action( 'feed' ) || bp_is_user() || ! empty( $bp->groups->current_group ) )
return false;
// Setup the feed.
buddypress()->activity->feed = new BP_Activity_Feed( array(
'id' => 'sitewide',
/* translators: Sitewide activity RSS title - "[Site Name] | Site Wide Activity" */
'title' => sprintf( __( '%s | Site-Wide Activity', 'buddyboss' ), bp_get_site_name() ),
'link' => bp_get_activity_directory_permalink(),
'description' => __( 'Activity feed for the entire site.', 'buddyboss' ),
'activity_args' => 'display_comments=threaded'
) );
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 1.0.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.