Override autocomplete options

mgibbs189

{{gist file=”test.js” lang=”javascript”}}
$(function() {
wp.hooks.addFilter(‘facetwp/set_options/autocomplete’, function(opts, params) {
opts.minChars = 2;
return opts;
});
});
{{/gist}}