The following defaults are possible to set with this code:
function wpdocs_set_comment_form_defaults( $defaults ) {
//Here you are able to change the $defaults[]
//For example:
$defaults['title_reply'] = __( 'Add a Comment' );
return $defaults;
}
add_filter( 'comment_form_defaults', 'wpdocs_set_comment_form_defaults' );
The following defaults are possible to set with this code:
Possible values for $defaults[ ‘…’ ]:
Example for overriding the title of the comment form (default ‘Leave a Reply’) from within a theme’s functions.php in the theme setup function: