Skip to content

Instantly share code, notes, and snippets.

@tripflex
Created June 30, 2017 17:31
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/b0ce9a69efe39d2e792ee56b3ea71247 to your computer and use it in GitHub Desktop.
Save tripflex/b0ce9a69efe39d2e792ee56b3ea71247 to your computer and use it in GitHub Desktop.
WP Job Manager Field Editor hide day selection in Flatpickr Date Picker field type
<?php
// Add this code to your functions.php file (omit the <?php at the top), or use the Code Snippets plugin (include everything)
add_filter( 'job_manager_field_editor_fpdate_args', 'smyles_fpdate_no_calendar' );
function smyles_fpdate_no_calendar( $args ){
// true needs to be in quotes to handle correctly in JavaScript
$args['noCalendar'] = 'true';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment