Set content type to HTML for lost password email only
I suspect you implemented the hook something like this: function wp_set_html_mail_content_type() { return ‘text/html’; } add_filter( ‘wp_mail_content_type’, ‘wp_set_html_mail_content_type’ ); More info: https://codex.wordpress.org/Plugin_API/Filter_Reference/wp_mail_content_type Did you need to reset the content type at a later point? ** UPDATE: try intercept it with a global variable: function xxx_wp_email_content_type() { if($GLOBALS[“use_html_content_type”]){ return ‘text/html’; }else{ return ‘text/plain’; } } add_filter( … Read more