Comment form customization example WordPress
Comment form customization example WordPress
$commenter = wp_get_current_commenter();
$req = get_option( 'require_name_email' );
$aria_req = ( $req ? " aria-required='true'" : '' );
$fields = array(
'comment_notes_before' => '
',
'author' => 'Name :',
'email' => 'Email :',
'subject' => 'Subject :',
'comment_notes_after' => '
'
);
$comment_args = array(
'fields' => $fields,
'title_reply' => 'Add Your Comment',
'label_submit' => ''
);
comment_form($comment_args);
Post a Comment