Created
September 30, 2016 08:34
-
-
Save hirejordansmith/1fc8d42415895c3db4e9881944c6e33a to your computer and use it in GitHub Desktop.
How to setup time-based conditional logic for Gravity Forms
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 | |
add_filter( 'gform_field_value_time', function() { | |
return date( 'G.i', current_time( 'timestamp' ) ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how to set a filed or submit button for a specific time to enable and specific time to disable