现在,如果您必须从默认联系人表单中添加/删除字段以更改评论框的感觉,该怎么办?我通过在评论中使用“fields”参数,将网站字段从默认评论框中删除。php
<?php $comment_args = array(\'title_reply\' => \'Got Something To Say:\',
\'fields\' => apply_filters(\'comment_form_default_fields\', array(
\'author\' => \'<p class="comment-form-author">\' . \'<label for="author">\' . __(\'Your Good Name\') . \'</label> \' . ($req ? \'<span>*</span>\' : \'\') .
\'<input id="author" name="author" type="text" value="\' . esc_attr($commenter[\'comment_author\']) . \'" size="30"\' . $aria_req . \' /></p>\',
\'email\' => \'<p class="comment-form-email">\' .
\'<label for="email">\' . __(\'Your Email Please\') . \'</label> \' .
($req ? \'<span>*</span>\' : \'\') .
\'<input id="email" name="email" type="text" value="\' . esc_attr($commenter[\'comment_author_email\']) . \'" size="30"\' . $aria_req . \' />\' . \'</p>\',
\'url\' => \'\')),
\'comment_field\' => \'<p>\' .
\'<label for="comment">\' . __(\'Let us know what you have to say:\') . \'</label>\' .
\'<textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea>\' .
\'</p>\',
\'comment_notes_after\' => \'\',
);
comment_form($comment_args); ?>