You want the filters…
retrieve_password_message
for the actual email content. Your hooked function will get the message as the first argument and the user’s reset key as the second.
<?php
add_filter('retrieve_password_message', 'wpse103299_reset_msg', 10, 2);
function wpse103299_reset_msg($message, $reset_key)
{
// ...
}
retrieve_password_title
for the the email subject.
<?php
add_filter('retrieve_password_title', 'wpse103299_reset_subject');
function wpse103299_reset_subject($subject)
{
// ...
}
Take a look at the retrieve_password
function which you can find in wp-login.php
.
Related Posts:
- Disable user registration password email
- Missing URL in password reset email
- Reset Password – change from name and email address
- Locked out of my own blog and password reset not working
- Change Password notification text on mail
- Emailing passwords: Setup installed on home server using XAMPP
- Requiring wp-login.php sends headers automatically
- Resend password chosen by WP administrator? [duplicate]
- Changed my email. Locked out
- Changing old email to new email, lost the password
- Why would it take four reset password attempts to finally get the e-mail?
- Sending a password reset link
- forgot password page with expiry link email of 60 minutes
- SMTP connect() failed PHPmailer – PHP
- What is the difference between ports 465 and 587?
- How do you update user_email on the front end in WP 3.3?
- User Without Email?
- Editing ‘Password Reset’ E-mail
- Email confirmation on registration
- Create custom welcome email without a plugin
- How do i send mail with custom Form Data using WordPress
- Email as Username in registration
- Fwd: [Website Name] Notice of Email Change [closed]
- Send all WPMU emails via SMTP
- Send a confirmation of user role upgrade conditionally
- How to Configure SMTP on wordpress Cant Send Email
- How to add line breaks to $email[‘body’] when using auto_core_update_email hook
- How to sent one form values to 2 different sites in wordpress
- General Setting Allow Multiple Email Notification
- How to validate website field in contact form 7?
- Trigger WordPress Actions from Email?
- How to change WordPress email notification sender?
- Contact form sender email
- WordPress Add New User – Send an Activation Email
- Send email only upon draft
- Sending emptys emails every day, How stop it?
- Emails marked as spam because it’s contain via box4231.bluehost.com
- How to change the text of automatic E-Mails e.g. after changing your password? (German localization)
- WordPress reset password email is not working – woocommerce and checkmail does work
- Change Password Confirmed Email Text
- 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
- Correctly configure SPF/DMARC record to work with WordPress [closed]
- Share pdf with a friend via email [closed]
- Mail function is not working
- How to set up a simple email subscription?
- Email user on WordPress upgrade
- Send bulk emails without timeout
- How to send post notification when a Author and Contributor post?
- Prevent sending emails on user creation in OOP context?
- WordPress get_the_content losing formatting when emailed
- Mailing list sign up form without plugin
- Retrieve duration since sign up
- Send email when publish new post in certain categories
- WordPress Won’t Send Email When a User Register
- Is it possible to not receive email notifications for comments?
- Confirmation required on users email change
- Email address used by website but I do not know where
- wp_mail not sending email on custom function
- Changing wordpress admin email [closed]
- Send clear password via mail
- Change email address change notice from WordPress
- Getting image in mail
- WP stopped emailing notifications about new comments
- How to prevent the scheduling of the same event on the same day
- How to change the format of the subcriber email
- wp_mail() won’t send mail when it’s a variable, only when hard coded
- Send email for confirmation during user registration
- I just had an email from wordpress. what does it mean?
- Alternative to email notification system?
- phpmailer reply to message id using AddCustomHeader
- About Custom Email Template Design Responsive
- Custom Password Reset
- Send email using wordpress plugin on behalf of someone with their permission
- How to apply a function to the value $email of get_user_by to override email_exists?
- Use [from-email] from the contact form as sender’s email
- wp_mail send multiple emails in a loop
- Can’t change headers / From for wp_mail()
- How to customize ‘WordPress’ in sent email using wp_mail function?
- New user notification issue
- E-Mail Notification on post edit
- Why do WordPress emails to multiple recipients include \n in the list
- Whitelist email sent by WordPress
- delete of @ in emailaddress when starting unsubscribe link in url
- Showing “diaplay_name”
- is_email() function Not Validating within Foreach Loop
- Garbled Code added to Email Field at ‘Quick Edit’ comment screen
- Send Custom Post Notification to Followers
- Get emails of register user in WordPress
- Mail function not working with user accounts
- Send email from WordPress
- Email setting in wordpress
- Not able to override pluggable function with a mu_plugin
- Display “a generated one [avatar] based on their e-mail address”
- Allow users to register as a higher role than default with code
- Send email once every 12 months to a particular user [closed]
- Where does email sent to *@example.com go? [closed]
- How to send emails and avoid them being classified as spam?
- How to change the WordPress email icon?
- What’s the optimum way to collect users’ email id?