WordPress编辑评论标签:edit_comment_link

WordPress模板标签edit_comment_link输出编辑评论的链接,需要用在The Loop主循环中。

edit_comment_link( string $text = null, string $before = '', string $after = '' )

函数参数

$text

字符串值,默认为空

链接锚文本

$before

字符串值,默认为空

链接前输出的字符

$after

字符串值,默认为空

链接后输出的字符

函数使用示例

<?php edit_comment_link('编辑评论', '<p>', '</p>'); ?>

扩展阅读

edit_comment_link()函数位于:wp-includes/link-template.php

相关函数:

阿里云