I think there’s some code you could add to your site you make sure no users get listed. Are you using BP Legacy or BP Nouveau ( Settings>>BuddyPress>>Options )?
Hi @Venutius. Thank you for your response.
I use BP Legacy
Hi there,
There’s two aspects to this. Firstly the inital list that gets displayed is based on the users friends list and it’s prepopulated on page load. To remove this you can add the following to your functions.php:
remove_action( 'bp_activity_mentions_prime_results', 'bp_friends_prime_mentions_results' );
Secondly when a user types @xx there is a lookup for mentions suggestions against bp_core_get_suggestions
if you return an empty array then no mention names will be displayed. Note that as it stands this will remove all mentions suggestions, so not just in activity but also in messaging etc. if you want to be more specific you will need to add a conditional which returns an empty array for only thse pages where you want that behaviour.
add_filter( 'bp_core_get_suggestions', 'bpex_filter_suggestions', 10, 2 );
function bpex_filter_suggestions( $retval, $args ) {
return array();
}
@Venutius Thank you for your help. I use the first code and work the way I need it. Thank you very much