To remove unnecessary fields, like email, name (author), website (
1 2 3 4 5 6 7 | function remove_fields_from_comment_form( $fields ) { if (isset( $fields [ 'email' ])) unset( $fields [ 'email' ]); if (isset( $fields [ 'author' ])) unset( $fields [ 'author' ]); if (isset( $fields [ 'url' ])) unset( $fields [ 'url' ]); return $fields ; } add_filter( 'comment_form_default_fields' , 'remove_fields_from_comment_form' ); |