Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,881
- Creating & Extending
- 25,910
- Requests & Feedback
- 9,553
- Third Party Plugins
- 9,832
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,183
-
`function my_friends_only_activity( $query ) {
$friends_id = bp_get_friend_ids( bp_loggedin_user_id() ) ;
$query = ‘&user_id=’ . $friends_id ;
return $query;
}
add_filter( ‘bp_dtheme_ajax_querystring’, ‘my_friends_only_activity’ );`