Skip to content

Instantly share code, notes, and snippets.

@tripflex
Created October 19, 2015 20:10
Show Gist options
  • Select an option

  • Save tripflex/addfc87514a0c856470a to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

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

@tripflex

Copy link
Copy Markdown
Author

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