Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save craiggrella/6817bac7f42c34969c2c to your computer and use it in GitHub Desktop.
// filter the Gravity Forms button type
remove_filter('gform_submit_button_2', 'form_submit_button', 10, 2);
add_filter('gform_submit_button_2', 'form_submit_button', 10, 2);
function form_submit_button($button, $form){
return "<button type='submit' class='single_add_to_cart_button button alt gform_button' id='gform_submit_button_{$form["id"]}'>Donate Now</button>";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment