How to: Restrict access to activity feeds
This will make it so that if some one does not have a logged in cookie, they cannot view the content of any activity feed.
function restrict_feeds(){
if (!is_user_logged_in()) {
remove_action( ‘wp’, ‘bp_activity_action_sitewide_feed’, 3 );
remove_action( ‘wp’, ‘bp_activity_action_personal_feed’, [...]