Created
October 5, 2019 13:41
-
-
Save deeman/1a80a5b0e8c829db8da73b79a577047c to your computer and use it in GitHub Desktop.
Genesis Framework: Modify the Comments Submit Button Text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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