Enable HTML formatting in emails in WordPress

Enable HTML formatting in emails in WordPress on child sites.

Snippet Type

Execute on Child Sites

Snippet

function filter_wp_mail_content_type() {
    return "text/html";
}
add_filter( 'wp_mail_content_type', 'filter_wp_mail_content_type', 10, 0 );
1 Like