You can use r-a-y’s code to remove that pane:
//Removes mentions pane from profile activity (doesn't remove mention functionality)
function ray_remove_mention_nav() {
global $bp;
bp_core_remove_subnav_item( $bp->activity->slug, 'mentions' );
}
add_action( 'bp_setup_nav', 'ray_remove_mention_nav', 15 );
It works on my 1.8+ test setup.
-David
I still don’t understand why adding:
add_filter( ‘bp_activity_do_mentions’, ‘__return_false’ );
to bp-custom.php or functions.php doesn’t work.
This should complete disable mentions.
Anyone knows why this doesn’t work?
It does work! I’ve just tested it for you and run from functions.php.
@hnla I have put the code in my functions.php of my Child Theme. Mentions are still enabled. Is there anything else I can try?
It seems to work partly:
For example on a Members page it removed the Mentions tab. But I can still click ‘Public Message’ and use the mention function.
I’ve got it working on the default BP theme my adding the code to functions.php
It is however still not working on my child-theme.
It’s working on my child-theme but I found that in your code aren’t apostropes…
try this one instead
add_filter( ‘bp_activity_do_mentions’, ‘__return_false’ );
@ultimateuser
create bp-custom.php and place it in wp-content/plugins, not wp-content/plugins/buddypress.
copy directly and paste the code below into bp-custom.php you created.
add_filter( 'bp_activity_do_mentions', '__return_false' );