如何过滤wordpress函数获取\注释\回复\链接?

如何过滤wordpress函数获取\注释\回复\链接?,wordpress,tags,comments,reply,Wordpress,Tags,Comments,Reply,我正在尝试使用以下代码过滤wordpress函数get\u comment\u reply\u link()返回的html function remove_ntshow($content){ echo "Dummy Text " . $content; return ""; } add_filter('get_comment_reply_link', 'remove_ntshow', 145); 它应该输出虚拟文本和任何内容。 最后,我需要输出如下内容 <a class

我正在尝试使用以下代码过滤wordpress函数get\u comment\u reply\u link()返回的html

function remove_ntshow($content){
    echo "Dummy Text " . $content;
    return "";

}
add_filter('get_comment_reply_link', 'remove_ntshow', 145);
它应该输出虚拟文本和任何内容。 最后,我需要输出如下内容

<a class="btn-cust btn-commentReply" href="http://stackoverflow.com/posts/"><i class="fa fa-fw fa-reply"></i></a>


但是,它不起作用

您可以使用
comment\u reply\u link()

function remove_ntshow($content){
         echo "<a class='btn-cust btn-commentReply' href='http://stackoverflow.com/posts/'><i class='fa fa-fw fa-reply'></i></a>" . $content;
        return "";        
}
add_filter('comment_reply_link', 'remove_ntshow', 145);
函数删除\u ntshow($content){
回声内容;
返回“”;
}
添加过滤器('comment\u reply\u link','remove\u ntshow',145);