FacetWP – change bookings date format

mgibbs189

{{gist file=”functions.js” lang=”javascript”}}
wp.hooks.addFilter( ‘facetwp/set_options/availability’, function(opts, data) {
opts.altFormat = ‘d-m-Y’;
return opts;
});

{{/gist}}