How To Add BuddyPress Mentions Interface to bbPress

BuddyPress 2.1 came out earlier this month with a brand new mentions interface, similar to Facebook and Twitter. It allows suggests you usernames when you type @ in your BuddyPress activity or replies, which saves a lot of time and you don’t have to type the entire usernames.

BuddyPress core developer Mathieu Viet posted a quick gist which allows you to effortlessly add BuddyPress mentions interface to bbPress forum replies.

Just drop the following snippet to your bp-custom.php or functions.php file:

function custom_bbpress_maybe_load_mentions_scripts( $retval = false ) {
    if ( function_exists( 'bbpress' ) && is_bbpress() ) {
        $retval = true;
    return $retval;
add_filter( 'bp_activity_maybe_load_mentions_scripts', 'custom_bbpress_maybe_load_mentions_scripts' );


50% OFF on all plans at OceanWP. Use coupon code:

Scroll to Top