祝你好运。最近,我尝试在评论框中添加自定义字段,这样效果很好。我仍然需要知道如何在注释框后添加自定义字段。我不知道该怎么做。
添加过滤器(\'comment\\u form\\u defaults\',\'change\\u comment\\u form\\u defaults\');
function change_comment_form_defaults($default) {
$commenter = wp_get_current_commenter();
$default[\'fields\'][\'comment\'] .= \'<p class="comment-form-author">\' .
\'
<input type="checkbox" style="margin:0px;height:auto;width:auto; position:relative;" name="privacy" value="1"/> I agree to the Terms of Use and Privacy Policy</p>\';
return $default;
}
当我尝试上述代码时,它本身就是这样出现的。

如何在注释框旁边显示此字段。任何建议都很好。
EDITED: