Created
October 12, 2021 12:53
-
-
Save DumahX/fbde071e7568c71d2677cb91410524c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function mepr_change_subject($subject, $recipients, $message, $headers) { | |
if(strpos(strtolower($subject), 'set your new password') !== false) { | |
$subject = 'New Subject - Set Your New Password'; | |
} | |
if(strpos(strtolower($subject), 'your new password') !== false) { | |
$subject = 'New Subject - Your New Password'; | |
} | |
return $subject; | |
} | |
add_filter('mepr-wp-mail-subject', 'mepr_change_subject', 10, 4); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment