Created
March 23, 2017 13:36
-
-
Save spivurno/cca181dde6a039b6d20851ff670521e9 to your computer and use it in GitHub Desktop.
Gravity Perks // GP Unique ID // Exclude Unique ID Fields from Gravity PDF
This file contains 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
👉 This Gist has been migrated to the Gravity Wiz Snippet Library:
https://github.com/gravitywiz/snippet-library/blob/master/gp-unique-id/gpuid-exclude-from-gravity-pdf.php