Skip to content

Instantly share code, notes, and snippets.

Created September 14, 2013 21:18
What would you like to do?
function set_form_1_complete_cookie() {
setcookie( 'form-1-complete', 1, strtotime( '+30 days' ), COOKIEPATH, COOKIE_DOMAIN, false, false );
add_action( 'gform_after_submission_1', 'set_form_1_complete_cookie' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment