add_filter('wp_mail_content_type',create_function('', 'return "text/html";'));
add_filter('wp_mail_content_type', 'sola520_use_html');
function sola520_use_html( $content_type ) {
if( '你的条件' )
return 'text/html';
else
return $content_type;
}
$headers = "MIME-Version: 1.0\n" . "Content-Type: text/html;";
wp_mail('[email protected]', 'The subject', '<p>The <em>HTML</em> message</p>', $headers);
以上就是安达网络工作室关于《WordPress中发送HTML邮件的方法》的一些看法。更多内容请查看本栏目更多内容!
get_post() 在普通主题制造时,get_post()函数咱们普通很少会用到,但由于前面会讲到get_posts(),所以咱们...
首先从wordpress顺序index.php动手: 复制代码代码如下:define('WP_USE_THEMES', true); /** Loads the Wor...
为何要用 get_term_link?: 新类型的分类是无奈用 <?php echo get_category_link( $category_id ); ?> 输入...
办法阐明 首先来看看可能被用到的办法. 关上文件 wp-includes/link-template.php 你会发现 WordPress 2.7 多...
很多博客都有本人的置顶文章,在默许状况下WP对置顶文章只是将它们的地位排在后面,除了地位差别外,跟其余...
很多冤家刚建设博客的时分都是采纳国际优秀的博客零碎:Z-BLOG,用一段工夫当时很多人都想转移到wordpress,...