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
//reference: \wp-content\plugins\facetwp\assets\js\front.js - Generate the user selections | |
wp.hooks.addAction('facetwp/loaded', function () { | |
// add custom code here | |
var selections = ''; | |
jQuery.each(FWP.facets, function (key, val) { | |
if (val.length < 1 || 'undefined' === typeof FWP.settings.labels[key]) { | |
return true; // skip this facet | |
} | |
var choices = val; |