WordPress.org

Make WordPress Core

Ticket #11247: new_user_email_filters.diff

File new_user_email_filters.diff, 858 bytes (added by ansimation, 5 years ago)

diff

  • pluggable.php

     
    11541154        $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n"; 
    11551155        $message .= sprintf(__('E-mail: %s'), $user_email) . "\r\n"; 
    11561156 
     1157    $message = apply_filters( 'admin_new_user_notification', $message ); 
     1158 
    11571159        @wp_mail(get_option('admin_email'), sprintf(__('[%s] New User Registration'), get_option('blogname')), $message); 
    11581160 
    11591161        if ( empty($plaintext_pass) ) 
     
    11631165        $message .= sprintf(__('Password: %s'), $plaintext_pass) . "\r\n"; 
    11641166        $message .= wp_login_url() . "\r\n"; 
    11651167 
     1168    $message = apply_filters( 'new_user_notification', $message ); 
     1169 
    11661170        wp_mail($user_email, sprintf(__('[%s] Your username and password'), get_option('blogname')), $message); 
    11671171 
    11681172}