Skip to:
Content

BuddyPress.org

Ticket #2669: ticket.2669.signup-filters..diff

File ticket.2669.signup-filters..diff, 2.9 KB (added by ptahdunbar, 14 years ago)
  • bp-core/bp-core-signup.php

     
    586586        $subject = '[' . $from_name . '] ' . __( 'Activate Your Account', 'buddypress' );
    587587
    588588        /* Send the message */
    589         $to = apply_filters( 'bp_core_activation_signup_user_notification_to', $user_email );
    590         $subject = apply_filters( 'bp_core_activation_signup_user_notification_subject', $subject );
    591         $message = apply_filters( 'bp_core_activation_signup_user_notification_message', $message );
     589        $to = apply_filters( 'bp_core_activation_signup_user_notification_to', $user_email, $user_id );
     590        $subject = apply_filters( 'bp_core_activation_signup_user_notification_subject', $subject, $user_id );
     591        $message = apply_filters( 'bp_core_activation_signup_user_notification_message', $message, $user_id );
    592592
    593593        wp_mail( $to, $subject, $message, $message_headers );
    594594}
  • bp-core/bp-core-filters.php

     
    178178        $subject = '[' . $from_name . '] ' . sprintf(__('Activate %s', 'buddypress' ), esc_url('http://' . $domain . $path));
    179179
    180180        /* Send the message */
    181         $to = apply_filters( 'bp_core_activation_signup_blog_notification_to', $user_email );
    182         $subject = apply_filters( 'bp_core_activation_signup_blog_notification_subject', $subject );
    183         $message = apply_filters( 'bp_core_activation_signup_blog_notification_message', $message );
     181        $to = apply_filters( 'bp_core_activation_signup_blog_notification_to', $user_email, $domain, $path, $title, $user, $user_email, $key, $meta );
     182        $subject = apply_filters( 'bp_core_activation_signup_blog_notification_subject', $subject, $domain, $path, $title, $user, $user_email, $key, $meta );
     183        $message = apply_filters( 'bp_core_activation_signup_blog_notification_message', $message, $domain, $path, $title, $user, $user_email, $key, $meta );
    184184
    185185        wp_mail( $to, $subject, $message, $message_headers );
    186186
     
    210210        $subject = '[' . $from_name . '] ' . __( 'Activate Your Account', 'buddypress' );
    211211
    212212        /* Send the message */
    213         $to = apply_filters( 'bp_core_activation_signup_user_notification_to', $user_email );
    214         $subject = apply_filters( 'bp_core_activation_signup_user_notification_subject', $subject );
    215         $message = apply_filters( 'bp_core_activation_signup_user_notification_message', $message );
     213        $to = apply_filters( 'bp_core_activation_signup_user_notification_to', $user_email, $user, $user_email, $key, $meta );
     214        $subject = apply_filters( 'bp_core_activation_signup_user_notification_subject', $subject, $user, $user_email, $key, $meta );
     215        $message = apply_filters( 'bp_core_activation_signup_user_notification_message', $message, $user, $user_email, $key, $meta );
    216216
    217217        wp_mail( $to, $subject, $message, $message_headers );
    218218