FacetWP – wp js hooks

mgibbs189

{{gist file=”test.js” lang=”javascript”}}
(function($) {
$(function() {
wp.hooks.addFilter(‘facetwp/set_options/date_range’, function(args) {
// do something
args.format = ‘yyyy-mm-dd’;
return args;
});
});
})(jQuery);
{{/gist}}