Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Updated solution to removing @mentions

@mmaccou

Participant

Hey @tecca

Here is the bp-custom…

<?php

if ( !defined( ‘BP_AVATAR_THUMB_WIDTH’ ) )
define( ‘BP_AVATAR_THUMB_WIDTH’, 128 ); //change this with your desired thumb width

if ( !defined( ‘BP_AVATAR_THUMB_HEIGHT’ ) )
define( ‘BP_AVATAR_THUMB_HEIGHT’, 128 ); //change this with your desired thumb height

if ( !defined( ‘BP_AVATAR_FULL_WIDTH’ ) )
define( ‘BP_AVATAR_FULL_WIDTH’, 256 ); //change this to default width for full avatar

if ( !defined( ‘BP_AVATAR_FULL_HEIGHT’ ) )
define( ‘BP_AVATAR_FULL_HEIGHT’, 256 ); //change this to default height for full avatar

/* deactivate @mention – BP 2.0+ & bbpress */

add_filter( ‘bp_activity_do_mentions’, ‘__return_false’ );
add_filter( ‘bbp_find_mentions’, ‘__return_false’ ); //bbPress only

?>

Skip to toolbar