Skip to content

Instantly share code, notes, and snippets.

/file1.php Secret

Created February 1, 2017 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/43bbfd3d130d3fdff6c8f7d5ef0a79e6 to your computer and use it in GitHub Desktop.
Save anonymous/43bbfd3d130d3fdff6c8f7d5ef0a79e6 to your computer and use it in GitHub Desktop.
<?php
$form_ids = GFFormsModel::get_forms();
$exclude_form_ids = array( 1, 2, 3 );
foreach( $form_ids as $form_id ) {
if( ! in_array( $form_ids, $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