Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// 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