Skip to content

Function

Filter the new user notification email.

tml_add_password_notice_to_new_user_notification_email( array $email )

Parameters

$email array
The new user notification email parameters.

Return

array The new user notification email parameters.

Source

function tml_add_password_notice_to_new_user_notification_email( $email ) {
    if ( tml_allow_user_passwords() ) {
        $email['message'] .= "\r\n" . __( 'If you have already set your own password, you may disregard this email and use the password you have already set.', 'theme-my-login' );
    }
    return $email;
}

Uses

Changelog

VersionDescription
7.0 Introduced.