admin管理员组文章数量:1315294
I am using this function to send an email to users after publishing, but I need to add paragraph spaces between text.<br>
doesn't seem to work in this context.
function wpse_366380_email_on_publish( $new_status, $old_status, $post ) {
if ( 'publish' == $new_status && ( 'auto-draft' == $old_status || 'pending' == $old_status ) ) {
$post = get_post($post_id);
$author = get_userdata($post->post_author);
$subject = "Post Published: ".$post->post_title."";
$message = "Hi ".$author->display_name.",
Your post, \"".$post->post_title."\" has just been published. Ps: Please review the article below <br>
View post: ".get_permalink( $post_id )."";
wp_mail($author->user_email, $subject, $message);
}
}
本文标签: Paragraph spaces in email template function
版权声明:本文标题:Paragraph spaces in email template function 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741980402a2408362.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论