Created
December 21, 2017 12:36
-
-
Save spivurno/6d80d8454af1838e836f716ebb0f23e8 to your computer and use it in GitHub Desktop.
Gravity Perks // GP Unique ID // Exclude Unique ID Fields from Gravity PDF
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 Perks // GP Unique ID // Exclude Unique ID Fields from Gravity PDF | |
* http://gravityperks.com | |
*/ | |
add_filter( 'gform_form_post_get_meta', function( $form ) { | |
foreach( $form['fields'] as &$field ) { | |
if( $field->get_input_type() == 'uid' ) { | |
$field->cssClass = 'exclude'; | |
} | |
} | |
return $form; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment