• Resolved iceraven721

    (@iceraven721)


    Is it possible to modify the “New User Registration” email that gets sent to the administrator? On one of the sites I manage, a block of people have the ability to add new users.

    Is it possible to make it look something like the text below?

    New user registration on your site [Site]:
    
    Username: [New User]
    
    E-mail: [New Email]
    
    Created By: [Existing Username]
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter iceraven721

    (@iceraven721)

    So I found the function which sends the email. I tried $current_user but that does not work. Any ideas?

    $message .= sprintf(__('Created By: %s'), $current_user) . "\r\n";

    Thread Starter iceraven721

    (@iceraven721)

    Figured it out. Needed a global $current_user; at the top, and a reference to $current_user->user_login.

    Cheers

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Modifying Admin User Email Notification’ is closed to new replies.