This is a plugin to help you follow the BuddyPress codex article Add custom filters to loops and enjoy them within your plugin
- WordPress 3.7.1 and BuddyPress 1.8.1
- Working in WordPress 3.8-beta1 and BuddyPress 1.9-beta1
Just drop the folder of the plugin into /wp-content/plugins
folder