-
-
Save spivurno/95ab9158843927face2e0c2831ab9774 to your computer and use it in GitHub Desktop.
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 | |
$forms = GFFormsModel::get_forms(); | |
$exclude_form_ids = array( 1, 2, 3 ); | |
foreach( $forms as $form ) { | |
if( ! in_array( $form->id, $exclude_form_ids ) ) { | |
new GW_Submission_Limit( array( | |
'form_id' => $form->id, | |
'limit' => 1 | |
) ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment