You can use an action to do that, but you can’t get the password because it’s encrypted, unless you catch the password when the registration form is submitted but that’s not a good practice.
Why do you need to get the passwords on admin email?
You can always reset password if the user forgot the password.
To send user information when a new user is registered:
add_action( 'user_register', 'send_new_user_info_to_email', 10, 1 );
function send_new_user_info_to_email( $user_id ) {
$user_info = get_userdata( $user_id );
$to = get_bloginfo('admin_email');
$subject="New User";
$body = 'User email:' . $user_info->user_email . '<br>User pass (encrypted):' . $user_info->user_pass ;
$headers = array('Content-Type: text/html; charset=UTF-8');
wp_mail( $to, $subject, $body, $headers );
}
Related Posts:
- Disable user registration password email
- How do I customise the new user welcome email
- User Without Email?
- Allow Duplicate Email Address for Different Users
- Email confirmation on registration
- Email as Username in registration
- Handle registrations in WordPress when user doesn’t have any email?
- Email notification after registration in WordPress
- wordpress do not let user registered with info@ email and other reserved emails to get registered by users
- How do I make WordPress send an email to the user when his account gets approved (manual by me)
- User registration email and let user choose pasword
- 2 Email addresses for each user
- Script or plugin to send activation email automatically again after 2 hours
- WordPress Won’t Send Email When a User Register
- Programming WordPress to Send an Email on Registration Form Submit?
- How do I troubleshoot registration/password email errors?
- Auto Log In Users after registration and send confirmation email
- Send email for confirmation during user registration
- User Without Email?
- I need to verify emails when users signup
- Check if “Send the new user an email about their account” is ticked
- WP Mail isn’t sending user account messages, does send from plugins
- User Registration – no Email required
- Get emails of register user in WordPress
- Duplicate notifications for new user registration
- Allowing Loading/Downloading of .mp3
- Create WP account from an external email form submission?
- Allow users to register as a higher role than default with code
- SMTP connect() failed PHPmailer – PHP
- What is the difference between ports 465 and 587?
- Email validation in Ruby on Rails?
- Is there a way to embed an iframe in an email with text that updates?
- How to change the default registration email ? (plugin and/or non-plugin)
- Sending multipart (text/html) emails via wp_mail() will likely get your domain banned
- How to set SMTP programmatically
- changing notification emails from WordPress @mydomain.net to something else
- Alert Email when any Post or Page is Changed
- Do something after sending email
- How do you update user_email on the front end in WP 3.3?
- Missing URL in password reset email
- Send user activation email when programmatically creating user
- “Reply-to Address” Email
- prevent users from changing their email address
- How to set up User email verification after Signup?
- Custom admin email for new user registration
- Disable new user notification to admin email
- Customizing lost password email
- Login email after registration never sent or received
- Create custom welcome email without a plugin
- Include HTML template file in wp_mail
- Email sent from WordPress has HTML tags
- How to disable automated E-Mail on PHP error/exception?
- Reset Password – change from name and email address
- How do i send mail with custom Form Data using WordPress
- Email stats at Ma.tt contact form
- Fwd: [Website Name] Notice of Email Change [closed]
- Send all WPMU emails via SMTP
- Send mail to wordpress admin
- Mail isn’t sent after local site registration
- How to disable wordpress confirmation email for new users
- Send a confirmation of user role upgrade conditionally
- WP Cron emails not working
- Dynamically send pdf attached to post with contact form 7 [closed]
- Few chars getting replaced with ‘=’ in mail content in wp_mail()
- Locked out of my own blog and password reset not working
- wp_mail recipient array not sending?
- Change Password notification text on mail
- Transferring contact form input to an email account without using an email-proxy
- Should I use the standard wp_mail() function for a premium theme?
- On form submission how to send 2 email to different users
- How to Configure SMTP on wordpress Cant Send Email
- email wordpress users using BCC
- Best way to create a user programatically
- Contact Form 7 + Configure SMTP: Sender email appearing as my own email [closed]
- email sends from [email protected] even though I have it set to something else
- How to add line breaks to $email[‘body’] when using auto_core_update_email hook
- Joining confirmation email
- How to sent one form values to 2 different sites in wordpress
- How to setup SMTP for only one specific wp_mail()
- apostrophe in email name
- Sanitizing and validating email field
- Disable WP notifications for commenting on own posts
- General Setting Allow Multiple Email Notification
- Must I change the admin user email address while changing the general email address?
- User invite email not delivered – related to subdomain?
- Can I configure WordPress to use postfix without a plugin?
- Send Notifications to All Admins
- Ability to download only after email supplied [closed]
- Batch Emails with wp_mail()
- action-scheduler vs wp-background-processing
- Subscribe from another website to the same list [closed]
- Trigger Woocommerce New User Email
- Obfuscating Email Addresses in Form Fields
- Email ‘from address’ has a www in it
- How to validate website field in contact form 7?
- How to Change WooCommerce new order email?
- Trigger WordPress Actions from Email?
- WordPress E-mail Config
- Is there no way to send email using SMTP without plugin or custom coding?
- How to pass external variables to the wp_new_user_notification_email filter?