Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save hirejordansmith/1fc8d42415895c3db4e9881944c6e33a to your computer and use it in GitHub Desktop.

Select an option

Save hirejordansmith/1fc8d42415895c3db4e9881944c6e33a to your computer and use it in GitHub Desktop.
How to setup time-based conditional logic for Gravity Forms
<?php
add_filter( 'gform_field_value_time', function() {
return date( 'G.i', current_time( 'timestamp' ) );
} );
@jasimp

jasimp commented Jun 13, 2020

Copy link
Copy Markdown

how to set a filed or submit button for a specific time to enable and specific time to disable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment