Reset Password Emai...
 
Notifications
Clear all

Script [Solved] Reset Password Emails Subject

2 Posts
2 Users
0 Reactions
135 Views
Posts: 1
Topic starter
(@ducky)
New Member
Joined: 3 months ago

Hello, Could you please add a "Message Subject" box to the Reset Password Emails section in the next update?

1 Reply
Robert
Posts: 10587
Admin
(@robert)
Support Team
Joined: 9 years ago

Hi @ducky,

You can change it using small code in the Code Snippets plugin or directly in the functions.php file of your child WordPress theme:

function custom_reset_password_email_subject($subject, $user_login, $user_data) {
    // Change the subject to your custom subject
    $subject = 'Your Custom Reset Password Subject';
    return $subject;
}
add_filter('retrieve_password_title', 'custom_reset_password_email_subject', 10, 3);

 

The doc: https://developer.wordpress.org/reference/hooks/retrieve_password_title/

Reply