我想在注释中添加一个字段,并使用了这些代码。
functions.php
function my_fields($fields) {
$fields[\'url2\'] = \'<p class="comment-form-url2">
<label for="url2">URL hittad på webben</label>
<input id="url2" name="url2" type="text" value="" size="30" />
</p>\';
return $fields;
}
add_filter(\'comment_form_default_fields\',\'my_fields\');
comments.php
comment_form();
Questions
<它不会在管理注释中添加额外字段。到底该不该