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
- Email validation in Ruby on Rails?
- Do something after sending email
- How to set up User email verification after Signup?
- Create custom welcome email without a plugin
- Mail isn’t sent after local site registration
- Send a confirmation of user role upgrade conditionally
- Dynamically send pdf attached to post with contact form 7 [closed]
- Should I use the standard wp_mail() function for a premium theme?
- How to Configure SMTP on wordpress Cant Send Email
- How to add line breaks to $email[‘body’] when using auto_core_update_email hook
- apostrophe in email name
- User invite email not delivered – related to subdomain?
- Can I configure WordPress to use postfix without a plugin?
- Ability to download only after email supplied [closed]
- Obfuscating Email Addresses in Form Fields
- How to validate website field in contact form 7?
- How to Change WooCommerce new order email?
- How to change WordPress email notification sender?
- PHP mail() works but wp_mail() does not
- Sending emptys emails every day, How stop it?
- WordPress Registration Email by Role
- How to set custom from email address in wp
- How to translate WordPress Emails?
- Share pdf with a friend via email [closed]
- How to change the default mail when admin approuved an user?
- Emails not getting delivered to Hotmail addresses
- Email user on WordPress upgrade
- Prevent sending emails on user creation in OOP context?
- Send email when publish new post in certain categories
- Downloadable content only for subscribers?
- show a little contact form in homepage without plugin
- Automatically email daily archive
- reply via email link under each post
- WordPress email could not be sent
- Sending new registration meta values to admin by email
- Is there a way to follow a WordPress site by email alerts for new posts? [closed]
- Resend password chosen by WP administrator? [duplicate]
- Changing old email to new email, lost the password
- Using PHP mail; getting Header warning
- Images in wp_mail not showing
- Send confirmation email when a user’s role is upgraded
- Why would it take four reset password attempts to finally get the e-mail?
- Emailing system monitoring with WP
- WordPress WooCommerce email notifications going to spam folder
- Mailing issues with wordpress?
- I want to setup a button/popup/whatever that will prompt users on the site to input their email address
- WordPress new user email formatting issues
- Email sent from WordPress has HTML tags
- email saying that was not possible to send the email
- Life after Feedburner and their email subscription
- Email Notify author of posts if content is out of date (older than 6 months)
- could not call wp_email function twice
- Updated : how to make email optional while user registration using default wordpress form
- Adding email list as registered users
- Remove wpautop from retrieve_password_message
- WordPress won’t let me change my administration email address
- How to send Woocommerce Customer Details (Name, Email and Phone Number) to Admin upon signup
- Email post to submitter
- How can I send an email to a user when a post in their category changes
- Notification Email Address not changing
- Custom Welcome Email | WordPress
- How to Enable registration email for a custom user role?
- Contact forms not sending mails
- Email Piping using google apps within WP Engine
- is_email() function Not Validating within Foreach Loop
- Garbled Code added to Email Field at ‘Quick Edit’ comment screen
- Can we validate user email changes?
- Is there a way to get the site_url in HTML code?
- Woo-Commerce Send mail by code. [closed]
- Choose from different emails for different purposes
- WordPress wp_mail not working on a few pages
- Admin email value stuck in database?