-
-
Save anonymous/9f8cc26f160424c70537a23989c4776a 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
$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