wordpress建站中,如何利用自身函数显示当前评论的作者email,下面web建站小编给大家简单介绍一下comment_author_email
函数的基本用法!
函数原型:
comment_author_email( int|WP_Comment $comment_id )
函数源码:
function comment_author_email( $comment_id = 0 ) { $comment = get_comment( $comment_id ); $author_email = get_comment_author_email( $comment ); echo apply_filters( 'author_email', $author_email, $comment->comment_ID ); }
调用方法:
<a href="mailto:<?php comment_author_email(); ?>"> <?php printf( __( 'Contact %s', 'textdomain' ), get_comment_author() ); ?> </a>
标签: comment_author_email, wordpress技巧, wordpress评论
上面是“wordpress技巧如何显示当前评论的作者email”的全面内容,想了解更多关于 wordpress 内容,请继续关注web建站教程。
当前网址:https://ipkd.cn/webs_4603.html
workflows工作流
一个极其美丽细致的女孩ComfyUI工作流
图生图工作流:粉红色梦幻家园comfyui工作流
一个黄色的海绵宝宝ComfyUI工作流
一只由粉色水晶与羽毛组成的巨型高跟鞋
停在音乐节露营地的一辆复古大众巴士由羊毛制成
一位身穿金色铠甲的美丽女子守卫在寺庙外
一只可爱的猫骑着一匹可爱的马ComfyUI工作流
一只外星甲壳虫子ComfyUI工作流
猜你喜欢
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!