Last active
July 30, 2020 13:36
-
-
Save mgibbs189/47fe37effb126e5b8870b64728b34778 to your computer and use it in GitHub Desktop.
FacetWP - modify flatpickr options
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
<script> | |
(function($) { | |
FWP.hooks.addFilter('facetwp/set_options/date_range', function(flatpickr_opts, extras) { | |
flatpickr_opts['allowInput'] = true; | |
return flatpickr_opts; | |
}); | |
})(jQuery); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment