Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save markusvonplunkett/38fecca6b3ed956952188ac518850508 to your computer and use it in GitHub Desktop.
Save markusvonplunkett/38fecca6b3ed956952188ac518850508 to your computer and use it in GitHub Desktop.
Breaking Gravity Forms
/ filter the Gravity Forms button type
function form_submit_button( $button, $form ) {
return "<button class='button' id='gform_submit_button_{$form['id']}'><span>Submit Enquiry</span></button>";
}
add_filter( 'gform_submit_button', __NAMESPACE__ . '\\form_submit_button', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment