Skip to content

Instantly share code, notes, and snippets.

@tripflex
Created October 19, 2015 20:10
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 tripflex/addfc87514a0c856470a to your computer and use it in GitHub Desktop.
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)
<?php
add_filter( 'job_manager_field_editor_date_args', 'my_custom_date_args' );
function my_custom_date_args( $args ){
$args['maxDate'] = '+30D';
return $args;
}
@teracomp
Copy link

Excellent example! Thanks for adding the functionality AND the code snippet. Really helps.

@tripflex
Copy link
Author

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