Created
October 16, 2018 15:59
-
-
Save markusvonplunkett/38fecca6b3ed956952188ac518850508 to your computer and use it in GitHub Desktop.
Breaking Gravity Forms
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
/ 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