Last active
November 7, 2022 16:31
-
-
Save spivurno/5065194 to your computer and use it in GitHub Desktop.
Gravity Wiz: Use Gravity Forms Conditional Logic with Dates
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
<?php | |
/** | |
* Use Gravity Forms Conditional Logic with Dates | |
* http://gravitywiz.com/use-gravity-forms-conditional-logic-with-dates/ | |
*/ | |
add_filter("gform_field_value_timestamp", "gwiz_populate_timestamp"); | |
function gwiz_populate_timestamp( $value ){ | |
return time(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👉 This Gist has been migrated to the Gravity Wiz Snippet Library:
https://github.com/gravitywiz/snippet-library/blob/master/gravity-forms/gw-dyn-pop-unix-timestamp.php