Skip to content

Instantly share code, notes, and snippets.

@DumahX
Created October 12, 2021 12:53
Show Gist options
  • Save DumahX/fbde071e7568c71d2677cb91410524c8 to your computer and use it in GitHub Desktop.
Save DumahX/fbde071e7568c71d2677cb91410524c8 to your computer and use it in GitHub Desktop.
<?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