Custom Hook for refresh on sort

djrmom

{{gist file=”custom-hooks.php” lang=”php”}}
(function($) {
$(‘.facetwp-sort’)).on(‘change’, ‘select’, function() {
FWP.refresh();
});
})(jQuery);
{{/gist}}