Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/12/2010 01:01:19 PM (16 years ago)
Author:
apeatling
Message:

Adding filters to all BuddyPress wp_mail() calls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-notifications.php

    r2663 r2697  
    4040            $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link );
    4141
    42             // Send it
     42            /* Send the message */
     43            $to = apply_filters( 'bp_activity_at_message_notification_to', $to );
     44            $subject = apply_filters( 'bp_activity_at_message_notification_subject', $subject );
     45            $message = apply_filters( 'bp_activity_at_message_notification_message', $message );
     46
    4347            wp_mail( $to, $subject, $message );
    4448        }
     
    7680        $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link );
    7781
    78         // Send it
     82        /* Send the message */
     83        $to = apply_filters( 'bp_activity_new_comment_notification_to', $to );
     84        $subject = apply_filters( 'bp_activity_new_comment_notification_subject', $subject );
     85        $message = apply_filters( 'bp_activity_new_comment_notification_message', $message );
     86
    7987        wp_mail( $to, $subject, $message );
    8088    }
     
    111119        $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link );
    112120
    113         // Send it
     121        /* Send the message */
     122        $to = apply_filters( 'bp_activity_new_comment_notification_comment_author_to', $to );
     123        $subject = apply_filters( 'bp_activity_new_comment_notification_comment_author_subject', $subject );
     124        $message = apply_filters( 'bp_activity_new_comment_notification_comment_author_message', $message );
     125
    114126        wp_mail( $to, $subject, $message );
    115127    }
Note: See TracChangeset for help on using the changeset viewer.