WordPress评论作者主页链接标签:comment_author_url_link

WordPress模板标签comment_author_url_link用于输出评论作者主页链接,与comment_author_url()函数的区别在于comment_author_url_link()函数输出的是可点击的URL,而comment_author_url()函数只输出一个单纯的URL,而comment_author_link()函数与前两函数的区别在于锚文本是作者名称。 comment_author_url_link( string $linktext = '', string $before = '', string $after = '', integer $comment = 0 ) 函数参数$linktext 字符串值,默认值:评论作者的主页URL …

WordPress评论作者URL标签:comment_author_url

WordPress模板标签comment_author_url用于输出评论作者的主页链接,通常用在自定义评论模板中。 comment_author_url( integer $comment_ID = 0 ) 函数参数$comment_ID 整数型,默认值:0 提供一个评论ID,输入该评论的作者主页链接。 …

WordPress评论者邮箱链接标签:comment_author_email_link

WordPress模板标签comment_author_email_link用于输出评论作者的邮箱链接,通常用于自定义评论模板中。 comment_author_email_link( string $linktext = '', string $before = '', string $after = '', int $comment = null ) 函数参数$linktext …

WordPress评论者邮箱标签:comment_author_email

WordPress模板标签comment_author_email用于输出评论者的邮箱地址,通常用在自定义评论模板中。 comment_author_email( integer $comment_ID = 0 ) 函数参数$comment_ID 整数型,默认值:0 指定一个评论ID,则输出该评论的作者邮箱地址。 …

WordPress评论作者链接标签:comment_author_link

WordPress模板标签comment_author_link用于输出带链接的评论作者名称,通常用于自定义评论模板中。 comment_author_link( integer $comment_ID = 0 ) 函数参数$comment_ID 整数型,默认值:0 提供评论ID则输出该评论的作者链接。 …

WordPress评论作者标签:comment_author

WordPress模板标签comment_author用于在评论模板中输出当前评论的作者,通常在自定义输出评论列表中使用。 comment_author( integer $comment_ID = 0 ) 函数参数$comment_ID 整数型,默认值:0 指定评论ID,则输出该评论的作者名称。 …

WordPress生成评论表单隐藏域标签:comment_id_fields

WordPress模板标签comment_id_fields用于在评论表单生成两个隐藏的域,保存当前文章ID和父评论的ID。 comment_id_fields( integer $id = 0 ) 函数参数$id 整数型,默认值:0 提供一个评论ID,隐藏域将基于这条评论来生成。 …

WordPress输出评论ID标签:comment_ID

WordPress模板标签comment_ID用于输出当前评论的ID,通常用在自定义评论模板。 comment_ID() comment_ID()函数没有参数,直接调用即可。 函数使用示例<p>这条评论的ID是:<?php comment_ID(); ?></p> 扩展阅读comment_ID()函数位于:wp-includes/comment-template.php …

WordPress弹出评论链接标签:comments_popup_link

WordPress模板标签comments_popup_link用于输出弹出评论的链接,当使用了comments_popup_script()函数时,点击该链接可实现弹出窗口评论,如果没有使用comments_popup_script()函数,则输出普通的跳转到评论区域的链接。 由于comments_popup_script()函数在WordPress 4.5版本已弃用,所以comments_popup_link()也变得没有意义。 …

WordPress弹出评论脚本标签:comments_popup_script

WordPress模板标签comments_popup_script用于输出支持弹出评论的JS脚本,可以使comments_popup_link()输出的链接实现弹出窗口中评论,通常在<head>标签之内使用。 …