Skip to content

Instantly share code, notes, and snippets.

@icreatesolutions
Created February 2, 2016 02:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icreatesolutions/1426400ca0f398b4c818 to your computer and use it in GitHub Desktop.
Save icreatesolutions/1426400ca0f398b4c818 to your computer and use it in GitHub Desktop.
Gravity Forms Button for Submit
<?php
add_filter( 'gform_submit_button', 'form_submit_button', 10, 5 );
function form_submit_button ( $button, $form ){
$button = str_replace( "input", "button", $button );
$button = str_replace( "/", "", $button );
$button .= "{$form['button']['text']}</button>";
return $button;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment