# BuddyPress: Turn Off @Mentions

> Switches off @mention links, notifications and the mention autocomplete in BuddyPress for communities that don't want them.

- Type: PHP
- Runs: Run everywhere
- Category: [Users](https://wpide.com/library/category/users/)
- Tags: buddypress, mentions, activity
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/buddypress-disable-mentions/

## Code

```php
if ( ! function_exists( 'buddypress' ) ) {
    return;
}

add_filter( 'bp_activity_do_mentions', '__return_false' );
add_filter( 'bp_activity_maybe_load_mentions_scripts', '__return_false' );
```

## Notes

Existing mention links in old updates are left as they are.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "BuddyPress: Turn Off @Mentions" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
