コメント欄のカスタマイズは、いろんな方法で可能になっています。
スタイルシートの設定による変更
/*.comment-notes .required,*/
/*.comment-form-author .required,*/
.comment-form-email .required{
display:none;
}
フィルタを使って、html要素を書き換える方法
//wp-includes/comment-template.php
add_filter("comment_form_defaults","my_special_comment_before");
function my_special_comment_before($args){
$args['comment_notes_before']= "コメントフォームをカスタマイズ";
$args['label_submit']= "コメントするよ";
$args['comment_notes_after']= '<p class="form-allowed-tags">' . sprintf( __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: %s' ), ' <code>' . allowed_tags() . '</code>' ) . '</p>';
$args['comment_notes_after']= '';
return $args;
}
add_filter('comment_form_default_fields','my_fields');
function my_fields($fields) {
$fields['new']= '<p>何かを書きたいときには、このように</p>';
$fields['author']= str_replace('*','<small>必須</small>',$fields['author']);
$fields['email']= str_replace('*','<small>必須</small>',$fields['author']);
return $fields;
}