Skip to content

Instantly share code, notes, and snippets.

@gregrickaby
Created March 21, 2012 19:19
Show Gist options
  • Save gregrickaby/2151610 to your computer and use it in GitHub Desktop.
Save gregrickaby/2151610 to your computer and use it in GitHub Desktop.
Genesis Comments Form
add_filter( 'genesis_comment_form_args', 'child_comment_form' );
/**
* Change "Post Comment" button text.
*
* @author Greg Rickaby
* @since 1.0.0
*/
function child_comment_form($args) {
$args = array (
'label_submit' => __( 'Submit', 'genesis' ),
);
return $args;
}
@jaredatch
Copy link

function child_comment_form($args) {
    $args['label_submit'] => 'submit';
    return $args;
}

@gregrickaby
Copy link
Author

This worked. Thank you.

add_filter( 'genesis_comment_form_args', 'child_comment_form' );
/**
 * Change "Leave Comment" text.
 * 
 * @author Greg Rickaby
 * @since 1.0.0
 */
function child_comment_form($args) {
    $args['label_submit'] = 'Submit';
    return $args;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment