Peter Davenport
asked 9 years ago

I’m using Q&A alongside BuddyPress, I was wondering if there is a way to add @mention support for your plugin. For example, @mentions did’t originally work by default in BBPress and a code snippet in functions.php was required to make it work. Is there any way you guys could add support for this BuddyPress feature? You’ve got such good integration with BuddyPress already that this would be a nice polish to it.

Thanks.

1 Answers
DominicStaff
answered 9 years ago

If you use buddypress and BBPress, you can try the following code. Please add the code to the bp-custom.php file

<?php
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' );

At the moment, our plugin does not support this feature. I think it’s great idea. We will discuss about it.
Regards,

Powered by DW Question & Answer Pro