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 6 replies - 1 through 6 (of 6 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?


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Try unhooking them:

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


    John
    Participant

    @jhob

    Thank you so much, that worked!

    I think I’d tried removing every other filter other than that one


    shonty
    Participant

    @shonty

    Hi guys,

    I’m also trying to remove @ mentions from Forums and Activity in Groups.

    I have successfully removed the @Username from beneath the profile names of buddypress users.

    I have both of the following in PHP Functions.

    add_filter( ‘bp_activity_do_mentions’, ‘__return_false’ );

    and

    remove_filter( ‘bbp_make_clickable’, ‘bbp_make_mentions_clickable’, 8 );

    Now what happens is, when I type “@” followed by a letter for example “J” for “Jack” it still brings up “Jack” user names but it doesnt actually tag them or turn into a link after selecting one. How do I turn off @mentions entirely so it doesnt bring up user names?

    I hope that makes sense.

    I am using the latest WordPress 5.4 and the latest Buddypress 5.1.2 and bbPress 2.6.4

    Any help would be amazballs:)


    Robin W
    Moderator

    @robin-w

    best I can find is the last post from this thread

    https://buddypress.org/support/topic/updated-solution-to-removing-mentions/

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