Support » Plugin: BuddyPress Group Email Subscription » Any way to disable emails being sent upon editing posts and docs?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Boone Gorges

    (@boonebgorges)

    Yes, you can block arbitrary activity types in code. I’m not sure whether by “documents” you mean BuddyPress Docs, but let’s say you want to block activity of the type ‘bp_doc_edited’ from triggering emails:

    function bbg_disable_bp_doc_edited_email_notifications( $allow, $type, $activity ) {
        if ( 'bp_doc_edited' === $type ) {
            $allow = false;
        }
    
        return $allow;
    }
    add_filter( 'ass_block_group_activity_types', 'bbg_disable_bp_doc_edited_email_notifications', 10, 3 );

    This technique can be modified for any other activity types.

    Naomi

    (@livingcminca)

    Where would I put this code, and how would I find activity types for Buddypress Group Forum posts (bbPress) and yes, Buddypress Docs?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Any way to disable emails being sent upon editing posts and docs?’ is closed to new replies.