Skip to content

Instantly share code, notes, and snippets.

@deeman
Created October 5, 2019 13:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deeman/1a80a5b0e8c829db8da73b79a577047c to your computer and use it in GitHub Desktop.
Save deeman/1a80a5b0e8c829db8da73b79a577047c to your computer and use it in GitHub Desktop.
Genesis Framework: Modify the Comments Submit Button Text
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
//* Customize the submit button text in comments
add_filter( 'comment_form_defaults', 'sp_comment_submit_button' );
function sp_comment_submit_button( $defaults ) {
$defaults['label_submit'] = __( 'Submit', 'custom' );
return $defaults;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment