Skip to content

Instantly share code, notes, and snippets.

@RexAK
Created January 22, 2015 18:42
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 RexAK/58aa1cd90ba6eb12eada to your computer and use it in GitHub Desktop.
Save RexAK/58aa1cd90ba6eb12eada to your computer and use it in GitHub Desktop.
Mandrill "new line to br"
// 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