Instantly share code, notes, and snippets.

What would you like to do?
add BuddyPress auto suggest mention feature in bbPress.
/** You could put this in the bp-custom.php file
* @see
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' );

This comment has been minimized.

hnla commented Sep 22, 2014

Interestingly or not tried this on a local dev install and it worked as expected on bbp topic textarea, thought no more and uploaded to a staging site where it apparently failed to work, after checking all the obvious, script enqueueing correctly etc found the only difference was I had the bbp textarea toolbar buttons activated, and indeed activating those on the staging site kicked the @mentions into life.


This comment has been minimized.

kellbot commented Dec 18, 2014

Super handy, thanks for this!


This comment has been minimized.

jackofallvices commented Sep 8, 2015

This hack works except that it does NOT work on group created forums. Any ideas on how to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment