Created
February 16, 2019 13:21
-
-
Save spivurno/c8a02916170e264a81ec02f021433d0f to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
/** | |
* Gravity Perks // Limit Dates // Disable All Dates & Set Enabled Dates via Exceptions | |
* http://gravitywiz.com/documentation/gravity-forms-limit-dates/ | |
*/ | |
add_filter( 'gpld_limit_dates_options_123_1', function( $options, $form, $field ) { | |
$options['exceptionMode'] = 'enable'; | |
$options['disableAll'] = true; | |
return $options; | |
}, 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment