Skip to content

Instantly share code, notes, and snippets.

@zackkatz
Created January 28, 2020 18:08
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 zackkatz/854329667d201f8a94bb5f83844e2102 to your computer and use it in GitHub Desktop.
Save zackkatz/854329667d201f8a94bb5f83844e2102 to your computer and use it in GitHub Desktop.
GravityView - Modify Gravity Forms Date Picker Options Settings
<?php
add_action( 'wp_head', function() {
?>
<script>
jQuery( document ).ready( function() {
gform.addFilter( 'gform_datepicker_options_pre_init', function( optionsObj, formId, fieldId ) {
console.log( 'gform_datepicker_options_pre_init: ' + formId + ' ' + fieldId );
console.log( optionsObj );
return optionsObj;
} );
} );
</script>
<?php
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment