Skip to:
Content
Pages
Categories
Search
Top
Bottom

Turn off @mentions


  • John
    Participant

    @jhob

    I’ve been trying to turn off mentions using:

    add_filter( 'bbp_find_mentions', '__return_false' );

    and

    add_filter( 'bp_activity_do_mentions', '__return_false' );

    but it’s not working. Has this changed in v2.6?

    Running bbPress v2.6-rc-7 and buddypress 4.3.0

    I want to turn it off as it’s not required by the site, but mainly that it breaks URLs that happen to contain a username as described here.

    Any ideas on how I can turn off @mentions?

Viewing 4 replies - 1 through 4 (of 4 total)

  • John
    Participant

    @jhob

    I’m still trying to find a solution for this, can anyone help?

    Now running buddypress 4.4.0.


    John
    Participant

    @jhob

    anyone?


    Boone Gorges
    Keymaster

    @boonebgorges

    It could be that bbPress has changed the way it finds clickable links in 2.6. Here’s some code that works for me to prevent bbPress from finding these links:

    
    
    add_filter(
    	'bbp_make_clickable',
    	function( $val ) {
    		remove_filter( 'bbp_make_clickable', 'bbp_make_mentions_clickable', 8 );
    		return $val;
    	},
    	0
    );
    
    

    John
    Participant

    @jhob

    Thanks for the reply, I actually found that the following worked, very similar solution to yours:

    remove_filter( 'bbp_make_clickable', 'bbp_make_mentions_clickable', 8 );

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar