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>
上面是“wordpress技巧如何显示当前评论的作者email”的全面内容,想了解更多关于 wordpress 内容,请继续关注web建站教程。
当前网址:https://ipkd.cn/webs_4603.html
workflows工作流
一个以破旧的怀旧史努比玩偶
图片转视频ComfyUI工作流
一位宇航员做在一只乌龟上在星空中游走
嘴唇丰满的漂亮女人
小孩手握锤子顽皮搞笑卡通3d形象
一只迷人的黑豹ComfyUI工作流
去掉背景(抠图)comfyui工作流
森林里一只空灵的犀鸟ComfyUI工作流
猜你喜欢
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

css3结合svg做一个动态广告
jquery做一个漂亮挂墙动态时钟
利用js+css3做一个小鱼游泳特效
制作一个好玩的倒计时
用canvas实现画板涂鸦效果
canvas空间文本射线
js实现下雪特效
css3画弹珠,可以滚动!











