Skip to:
Content
Pages
Categories
Search
Top
Bottom

Removing @mentions from buddypress


  • mmaccou
    Participant

    @mmaccou

    I am trying to remove the option for users to use the @mention feature on my site. I found this thread

    How to Remove @mentions from BuddyPress

    …however, after following the steps, I cannot get it to work. I followed them exactly, but maybe I wasnt inserting the code into the right part of the function.php? Does it matter where in the file the code goes?

    Is there another remedy to removing the @mentioni?

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

  • danbp
    Participant

    @danbp

    Hi @mmaccou,

    The place in the functions.php has no importance. You can also use bp-custom.php to be independant of your theme.
    That said, the tip (published 2010) you tried is no more accurate for BP 2.x and/or bbPress.

    Try this one instead:

    /* deactivate @mention - BP 2.0+ & bbpress */
    
    add_filter( 'bp_activity_do_mentions', '__return_false' ); // BP only
    add_filter( 'bbp_find_mentions', '__return_false' ); //bbPress only

    Hugo Ashmore
    Participant

    @hnla

    @mmaccou you should always check the BuddyPress documentation for things like this as well as third party sites.

    In this instance the required item is not perhaps that obvious to find, so I’m considering a version of the page slightly re-written and added under our ‘Administrators’ section.

    Filters & Constants Reference


    mmaccou
    Participant

    @mmaccou

    I just submitted a reply but not sure if it went throught….anyway i tried adding that code to the bp-custom and it didnt work. I also tried functions and the mention was still showing. Everytime I try to add screenshots, links, or images to this post, nothing gets submitted. Im not sure whats happening…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Removing @mentions from buddypress’ is closed to new replies.
Skip to toolbar