Skip to content

Instantly share code, notes, and snippets.

@DumahX
Last active March 29, 2021 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DumahX/883380efff6c2b1e11f3a02e30da892b to your computer and use it in GitHub Desktop.
Save DumahX/883380efff6c2b1e11f3a02e30da892b to your computer and use it in GitHub Desktop.
Change "Password Changed" message body
<?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