Skip to content

Instantly share code, notes, and snippets.

@mustardBees
Created August 3, 2017 10:35
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 mustardBees/add8c7dd9fc0339872906995375e7b26 to your computer and use it in GitHub Desktop.
Save mustardBees/add8c7dd9fc0339872906995375e7b26 to your computer and use it in GitHub Desktop.
Formidable - add classes to each form's submit button.
<?php
/**
* Add classes to each form's submit button.
*
* @param array $classes
*
* @return array
*/
function iweb_add_submit_button_classes( $classes ) {
$classes[] = 'button medium color';
return $classes;
}
add_filter( 'frm_submit_button_class', 'iweb_add_submit_button_classes' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment