wordpress建站如何显示评论作者的email链接

533 ℃

函数原型:

comment_author_email_link( string $linktext = '', string $before = '', string $after = '',
 int|WP_Comment $comment = null )

参数说明:

参数名 描述
$linktext 要显示的文本,而不是评论作者的电子邮件地址。
$before 要在电子邮件链接之前显示的文本或HTML。
$after 要在电子邮件链接后显示的文本或HTML。
$comment 评论ID或WP_Comment对象。默认为当前评论。

函数源码:

function comment_author_email_link( $linktext = '', $before = '', $after = '', $comment = null ) {
  $link = get_comment_author_email_link( $linktext, $before, $after, $comment );
  if ( $link ) {
    echo $link;
  }
}

调用方法:

邮箱: <?php comment_author_email_link(); ?>

WordPress评论相关功能介绍

WordPress如何显示当前文章的评论个数

wordpress如何获取下个评论的链接

wordpress如何显示下个评论链接

wordpress技巧如何显示当前评论的摘要

标签: comment_author_email_link, wordpress评论

上面是“wordpress建站如何显示评论作者的email链接”的全面内容,想了解更多关于 wordpress 内容,请继续关注web建站教程。

当前网址:https://m.ipkd.cn/webs_4639.html

声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

wordpress报“Fatal error: Allowed memory size of”错误怎么办
css如何实现强制英文不换行
如何降低网站跳出率提高网站的用户体验度
Nginx如何利用proxy_cache模块实现动态缓存
Chatgpt-on-Wechat