'
',
'email' => '',
'url' => '',
);
return $fields;
}
} // endif function_exists( 'understrap_bootstrap_comment_form_fields' )
add_filter( 'comment_form_defaults', 'understrap_bootstrap_comment_form' );
/**
* Builds the form.
*
* @param string $args Arguments for form's fields.
*
* @return mixed
*/
if ( ! function_exists( 'understrap_bootstrap_comment_form' ) ) {
function understrap_bootstrap_comment_form( $args ) {
$args['comment_field'] = '';
$args['class_submit'] = 'btn btn-secondary'; // since WP 4.1.
return $args;
}
} // endif function_exists( 'understrap_bootstrap_comment_form' )