Created
June 30, 2017 17:31
-
-
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
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 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