Skip to content

Instantly share code, notes, and snippets.

/file1.php Secret

Created February 14, 2017 19:25
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/d2f3e35bc7c0d3f8c89c553b928ee643 to your computer and use it in GitHub Desktop.
Save anonymous/d2f3e35bc7c0d3f8c89c553b928ee643 to your computer and use it in GitHub Desktop.
$gwsl1 = new GW_Submission_Limit( array(
'form_id' => 327,
'limit' => 2,
'limit_message' => 'Aha! You have been limited.'
) );
echo $gwsl1->get_entry_count( 327 );
echo '<br>';
echo $gwsl1->get_limit();
echo '<br>';
echo $gwsl1->get_limit() - $gwsl1->get_entry_count( 327 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment