Created
January 28, 2020 18:08
-
-
Save zackkatz/854329667d201f8a94bb5f83844e2102 to your computer and use it in GitHub Desktop.
GravityView - Modify Gravity Forms Date Picker Options Settings
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_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