Created
August 22, 2015 13:36
-
-
Save NikV/008625f1f45a54b783de to your computer and use it in GitHub Desktop.
Modify the class of the form save button in Gravity Forms
This file contains hidden or 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
function modify_gform_save_form_button() { | |
return '<input type="button" class="button button-large button-primary update-form my-button-class" value="' . $button_text . '" onclick="SaveForm(' . $isNew . ');" />';; | |
} | |
add_filter('gform_save_form_button', 'modify_gform_save_form_button'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment