atwellpub / resend-welcome-email

WordPress plugin that helps quickly regenerate a new passwords & send a new welcome email to a user.
17 stars 14 forks source link

Welcome email sent! with user name? #11

Open tiborepcek opened 6 years ago

tiborepcek commented 6 years ago

Can you, please, add user name like this?

Welcome email sent >to user-name<!

Thanks.

atwellpub commented 6 years ago

Open to this too. Any readers want to take it on and add your name to the contributors list I'm okay with that.

tiborepcek commented 6 years ago

Is this correct?

Line 133: ...'Welcome email sent to user: ' . $user ...

If it works, i add pull request.

atwellpub commented 6 years ago

I think you will want to use this bit of code:

    $current_user = wp_get_current_user();
    echo $current_user->user_login';

from: https://codex.wordpress.org/Function_Reference/wp_get_current_user