Snippets: Alter the WordPress Comments Submit Button Text

function myprefix_comment_form_args( $args ) {
	$args['label_submit'] = 'Custom submit text';
	return $args;
}
add_filter( 'comment_form_defaults', 'myprefix_comment_form_args' );

Snippet Type: PHP

Posted Under: Other

All PHP snippets should be added via a child theme's functions.php file.