';
$bloghub_comment_form_fields['email'] = '
';
$bloghub_comment_form_fields['url'] = '
';
return $bloghub_comment_form_fields;
}
add_filter('comment_form_default_fields', 'bloghub_comment_form');
function bloghub_comment_default_form($default_form){
$default_form['comment_field'] = '
';
$default_form['submit_button'] = '
';
$default_form['comment_notes_before'] = esc_html__('All fields marked with an asterisk (*) are required', 'bloghub' );
$default_form['title_reply'] = esc_html__('Leave A Comment', 'bloghub');
$default_form['title_reply_before'] = '';
return $default_form;
}
add_filter('comment_form_defaults', 'bloghub_comment_default_form');
function bloghub_move_comment_field_to_bottom( $fields ) {
$comment_field = $fields['comment'];
unset( $fields['comment'] );
$fields['comment'] = $comment_field;
return $fields;
}
add_filter( 'comment_form_fields', 'bloghub_move_comment_field_to_bottom' );