How do I Remove BuddyPress Auto Status Updates from the Activity Feed?
-
I want to stop activity updates like ‘Mr X. added Mr B. as a friend’ and ‘Mrs C. Joined group xyz’ from showing in the activity stream. I know I can do it by editing the activity-loop.php file to change:
`if ( bp_has_activities( bp_ajax_querystring( ‘activity’ ) ) ) :`
To
`if ( bp_has_activities( ‘type=activity_update&action=activity_update’ ) ) :`
But doing it like this creates a problem with the ‘Load More’ button on the activity stream. When the above edit is made, the Load More button doesn’t load more, it loads the same updates over and over again.
I am aware of another solution that prevents those auto status updates from being written to the database but I prefer to log the data in case it’s needed later.
Is there another solution?
- The topic ‘How do I Remove BuddyPress Auto Status Updates from the Activity Feed?’ is closed to new replies.