Last active
March 29, 2021 18:23
-
-
Save DumahX/883380efff6c2b1e11f3a02e30da892b to your computer and use it in GitHub Desktop.
Change "Password Changed" message body
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 | |
// Copy the lines below this one into a plugin like Code Snippets (run everywhere type) | |
function mepr_pw_changed_message( $message, $recipients, $subject, $headers ) { | |
if ( strpos( $subject, 'Your new Password' ) !== false ) { | |
$message = 'This is a modified message'; // Change 'This is a modified message'. | |
} | |
return $message; | |
} | |
add_filter( 'mepr-wp-mail-message', 'mepr_pw_changed_message', 10, 4 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment