Skip to:
Content

BuddyPress.org

Ticket #7863: 7863.patch

File 7863.patch, 681 bytes (added by dipesh.kakadiya, 7 years ago)

patch file for added filter for message content for email notification

  • src/bp-messages/bp-messages-functions.php

    diff --git a/src/bp-messages/bp-messages-functions.php b/src/bp-messages/bp-messages-functions.php
    index 6699597b4..494cddf3c 100644
    a b function messages_notification_new_message( $raw_args = array() ) { 
    581581
    582582        $sender_name = bp_core_get_user_displayname( $sender_id );
    583583
     584        $message = apply_filters( 'bp_get_the_thread_message_content', $message );
     585
    584586        // Send an email to each recipient.
    585587        foreach ( $recipients as $recipient ) {
    586588                if ( $sender_id == $recipient->user_id || 'no' == bp_get_user_meta( $recipient->user_id, 'notification_messages_new_message', true ) ) {