我的评论中有以下代码。php
<div class="reply">
<?php comment_reply_link(array_merge( $args, array(\'depth\' => $depth, \'max_depth\' => $args[\'max_depth\']))) ?>
</div>
我尝试放置以下过滤器,但它破坏了布局(它添加了两行文本/url):function additemproptocommentreplylink( $atts, $item, $args ) {
$atts[\'itemprop\'] = \'replyToUrl\';
return $atts;
}
add_filter(\'comment_reply_link\', \'additemproptocommentreplylink\', 3, 10);
有人能建议我如何将itemprop添加到回复链接吗?谢谢