Created
October 19, 2015 20:10
-
-
Save tripflex/addfc87514a0c856470a to your computer and use it in GitHub Desktop.
Set a specific option for jQuery UI Datepicker field type (this example sets max date to +30 days from now)
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( 'job_manager_field_editor_date_args', 'my_custom_date_args' ); | |
function my_custom_date_args( $args ){ | |
$args['maxDate'] = '+30D'; | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://jqueryui.com/datepicker/
Available options:
http://api.jqueryui.com/datepicker/