Skip to content

Instantly share code, notes, and snippets.

/file1.php Secret

Created December 21, 2016 07:21
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/9f8cc26f160424c70537a23989c4776a to your computer and use it in GitHub Desktop.
Save anonymous/9f8cc26f160424c70537a23989c4776a to your computer and use it in GitHub Desktop.
$this->_args = wp_parse_args( $args, array(
'form_id' => false,
'limit' => 1,
'limit_by' => 'ip', // 'ip', 'user_id', 'role', 'embed_url', 'field_value'
'time_period' => 60 * 60 * 24, // integer in seconds or 'day', 'month', 'year' to limit to current day, month, or year respectively
'limit_message' => __( 'Sorry, you have reached the submission limit for this form.' ),
'apply_limit_per_form' => false,
'enable_notifications' => false
) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment