-
-
Save anonymous/4dcf094799bba4938473354c1df61316 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
foreach( array( 2, 3, 4, 5, 9 ) as $form_id ) { | |
# Basic Usage | |
new GW_Submission_Limit( array( | |
'form_id' => $form_id, | |
'limit_by' => 'field_value', | |
'limit' => array( | |
// "18" is your field ID, "1" is your limit for this field ID | |
18 => 1 | |
), | |
'time_period' => 60 * 60 * 24 * 10, | |
'limit_message' => 'Ati trimis deja o solicitare in ultimele 10 zile.' | |
) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment