Powered By Blogger
Showing posts with label mail. Show all posts
Showing posts with label mail. Show all posts

Saturday, November 5, 2016

wp mail content type or HTML mail template for wp_mail

https://codex.wordpress.org/Plugin_API/Filter_Reference/wp_mail_content_type

Function.php

add_filter( 'wp_mail_content_type', 'set_content_type' );
function set_content_type( $content_type ) {
 return 'text/html';
}

Wednesday, September 14, 2016