Skip to content

Instantly share code, notes, and snippets.

@wpspeak
Created June 14, 2013 20:16
Show Gist options
  • Save wpspeak/5784926 to your computer and use it in GitHub Desktop.
Save wpspeak/5784926 to your computer and use it in GitHub Desktop.
Change submit button text in comment form
<?php
// Change submit button text in comment form
function afn_change_submit_button_text( $defaults ) {
$defaults['label_submit'] = 'Submit Comment';
return $defaults;
}
add_filter( 'comment_form_defaults', 'afn_change_submit_button_text' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment