Created
July 20, 2018 02:43
-
-
Save spivurno/4ec6d9e2c1d6d3b0744be2ac9b783a01 to your computer and use it in GitHub Desktop.
Gravity Wiz // Gravity Forms Styles Pro // Force Validation Message
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
| <?php | |
| /** | |
| * Gravity Wiz // Gravity Forms Styles Pro // Force Validation Message | |
| * http://gravitywiz.com | |
| */ | |
| if( class_exists( 'StylesPro' ) ) { | |
| add_filter( 'gform_validation_message', function( $message, $form ) { | |
| add_filter( "gform_validation_message_{$form['id']}", array( StylesPro::get_instance(), 'gf_stylespro_validation'), 11, 2 ); | |
| }, 10, 2 ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment