BuddyDev

Search

[Resolved] How to turn off mentions notifications?

  • Participant
    Level: Initiated
    Posts: 16
    Ekiz on #11532

    How to turn off mentions notifications?

    ”USERNAME mentioned you”

    ”You have XX new mentions”

    I want to turn off these notifications.

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #11537

    Hi Ekiz,
    Please put this code in your bp-custom.php

    
    
    add_filter( 'bp_activity_do_mentions', '__return_false' );
    

    It will disable mentioning from activity.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 16
    Ekiz on #11541

    Hi Brajesh Singh,

    I just want to turn off mention notifications.

    this section: /members/username/notifications/

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #11546

    Hi,
    You can remove the earlier snippet and use the following in your bp-custom.php

    
    /**
     * Stop local mention notification.
     */
    function budyddev_disable_local_mention_notification() {
    	remove_action( 'bp_activity_sent_mention_email', 'bp_activity_at_mention_add_notification', 10, 5 );
    }
    add_action( 'bp_include', 'budyddev_disable_local_mention_notification' );
    
    

    That will stop future local notifications.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 16
    Ekiz on #11558

    Thanks man. It worked fine..

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #11576

    You are welcome 🙂

The topic ‘ [Resolved] How to turn off mentions notifications?’ is closed to new replies.

This topic is: resolved