Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to filter all activity from a member


Boone Gorges
Keymaster

@boonebgorges

Check out this post by Rich: http://blog.etiviti.com/2010/03/buddypress-hack-remove-non-friend-updates-from-the-activity-stream/ You’ll want to change line 10 to be something like if ( $activity->user_id == $filtered_user_id ) (or use in_array if you have a number of users whose content you want to filter).

Not a perfect solution – it’ll screw up some of your page numbering if you filter out too much – but it’s good for filtering out the occasional item from a particular item.

Skip to toolbar