Reset Password Emai...
 
Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

Script [Solved] Reset Password Emails Subject

2 Posts
2 Users
0 Reactions
638 Views
Posts: 1
Topic starter
(@ducky)
New Member
Joined: 12 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: 10616
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