Created
January 22, 2015 18:42
-
-
Save RexAK/58aa1cd90ba6eb12eada to your computer and use it in GitHub Desktop.
Mandrill "new line to br"
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
// This will temporarily turn on the nl2br in mandrill for WP's forgot my password link. | |
function forgotMyPasswordEmails( $nl2br, $message ) { | |
if ( in_array( 'wp_retrieve_password', $message['tags']['automatic'] ) ) { | |
$nl2br = true; | |
} | |
return $nl2br; | |
} | |
add_filter( 'mandrill_nl2br', 'forgotMyPasswordEmails', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment