Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Disabling new message emails

  • @devbynature

    Participant

    How might I go about disabling all new message emails across the board?

Viewing 2 replies - 1 through 2 (of 2 total)
  • @shanebp

    Moderator

    You want to prevent emails being sent for all new messages?

    Try this in your theme/functions.php or in plugins/bp-custom.php
    remove_action( 'messages_message_sent', 'messages_notification_new_message', 10 );

    If that doesn’t work, try writing a function using this hook:
    do_action_ref_array( 'messages_message_sent', array( &$message ) );
    Found in: bp-messages\bp-messages-functions.php

    In that function, remove all the recipients from $message.

    @devbynature

    Participant

    Thanks, @shanebp! Not sure how to mark this as [Resolved]

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Disabling new message emails’ is closed to new replies.
Skip to toolbar