Skip to content

Instantly share code, notes, and snippets.

/file1.php Secret

Created December 25, 2016 03:57
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 anonymous/f8e616630d121a6fb69d0c67f6035519 to your computer and use it in GitHub Desktop.
Save anonymous/f8e616630d121a6fb69d0c67f6035519 to your computer and use it in GitHub Desktop.
new GW_Submission_Limit( array(
'form_id' => 2,
'limit_by' => 'field_value',
'limit' => array(
// "7" is form field ID for a name field, 7.3 is first, 7.6 is last, "1" is limit for this field ID
7.3 => 1,
7.6 => 1,
),
'limit_message' => 'You\'ve already entered today.',
'time_period' => per_day,
) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment