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-core/bp-core-activation.php

    r2635 r2697  
    114114    $subject = '[' . $from_name . '] ' . sprintf(__('Activate %s', 'buddypress' ), clean_url('http://' . $domain . $path));
    115115
    116     wp_mail( $user_email, $subject, $message, $message_headers );
     116    /* Send the message */
     117    $to = apply_filters( 'bp_core_activation_signup_blog_notification_to', $user_email );
     118    $subject = apply_filters( 'bp_core_activation_signup_blog_notification_subject', $subject );
     119    $message = apply_filters( 'bp_core_activation_signup_blog_notification_message', $message );
     120
     121    wp_mail( $to, $subject, $message, $message_headers );
    117122
    118123    // Return false to stop the original WPMU function from continuing
     
    141146    $subject = '[' . $from_name . '] ' . __( 'Activate Your Account', 'buddypress' );
    142147
    143     wp_mail( $user_email, $subject, $message, $message_headers );
     148    /* Send the message */
     149    $to = apply_filters( 'bp_core_activation_signup_user_notification_to', $user_email );
     150    $subject = apply_filters( 'bp_core_activation_signup_user_notification_subject', $subject );
     151    $message = apply_filters( 'bp_core_activation_signup_user_notification_message', $message );
     152
     153    wp_mail( $to, $subject, $message, $message_headers );
    144154
    145155    // Return false to stop the original WPMU function from continuing
Note: See TracChangeset for help on using the changeset viewer.