wp-includes相关文件说明之“comment-template.php”

get_comment_author()–检索当前留言者姓名是否存在,存在则用留言者名,否则则用 [无名氏] 代替.

comment_author()–显示当前留言者姓名

get_comment_author_email()–检索当前留言者EMAIL

comment_author_email()–显示评论者的EMAIL(为保护他人隐私,请确保在你BLOG的任何地方都不会显示出该值)

comment_author_email_link()–评论者EMAIL链接接口

comment_author_IP()–显示评论者IP地址

get_comment_author_IP()–检索评论者IP地址

get_comment_author_link()–检索评论者的站点地址

comment_author_link()–显示评论者的站点链接地址(模板文件comments.php有相关例子)

get_comment_author_url–检索评论者的URL地址

comment_author_url()–显示评论者的URL地址

get_comment_author_url_link–检索评论者的WebSite地址

get_comment_date()–检索评论时间

comment_date()–显示评论时间

get_comment_excerpt()–检索评论摘要(用于文章下方的Recent Comments部分)

comment_excerpt()–显示评论摘要内容(用于文章下方的Recent Comments部分)

get_comment_ID()–检索当前评论ID号(用于文章下方的Recent Comments部分)

comment_ID()–显示当前评论ID号(用于文章下方的Recent Comments部分)

get_comment_link()–检索当前评论地址(注意:这里是comment,而不是comments)(用于文章下方的Recent Comments部分)

get_comments_link()–检索所有评论所在地(用于标题下方的评论链接)

comments_link– 显示所有评论地址

get_comments_number–检索评论数量

comments_number–显示评论总数

get_comment_text()–检索评论内容

comment_text()–显示评论内容

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值