Set a specific option for jQuery UI Datepicker field type (this example sets max date to +30 days from now)

functions.php

<?php

add_filter( 'job_manager_field_editor_date_args', 'my_custom_date_args' );

function my_custom_date_args( $args ){
	$args['maxDate'] = '+30D';
	return $args;
}
No comments yet.

Leave a Reply