Skip to content

Instantly share code, notes, and snippets.

@DumahX
Created October 26, 2021 15:57
Show Gist options
  • Save DumahX/508e98b027924c1bb2707949b35d34be to your computer and use it in GitHub Desktop.
Save DumahX/508e98b027924c1bb2707949b35d34be to your computer and use it in GitHub Desktop.
<?php
function mepr_change_subject($subject, $recipients, $message, $headers) {
if(strpos(strtolower($subject), 'password reset') !== false) {
$subject = 'New Subject - Password Reset';
}
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