Skip to content

Instantly share code, notes, and snippets.

@spivurno
Forked from anonymous/file1.php
Created February 1, 2017 23:18
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 spivurno/95ab9158843927face2e0c2831ab9774 to your computer and use it in GitHub Desktop.
Save spivurno/95ab9158843927face2e0c2831ab9774 to your computer and use it in GitHub Desktop.
<?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