Customize From and email address on password reset
I found an answer myself, I’m leaving it here for someone who may face a similar problem in the future: function my_custom_wpse_mail_from($original_email_address) { if (isset($_GET[‘action’]) && $_GET[‘action’] == ‘lostpassword’) { if (isset($_POST[‘user_login’])) { return ‘[email protected]’; } } return $original_email_address; } add_filter(‘wp_mail_from’, ‘my_custom_wpse_mail_from’, 10, 1); function my_custom_wpse_mail_from_name( $original_from ) { if (isset($_GET[‘action’]) && $_GET[‘action’] == ‘lostpassword’) … Read more