Created
February 6, 2018 19:27
-
-
Save djrmom/e78cdc5fdb28dea44c9e6a778b0c776b to your computer and use it in GitHub Desktop.
facetwp get value of facet filter
This file contains hidden or 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
(function($) { | |
$(document).on('facetwp-loaded', function() { | |
if ('undefined' !== typeof FWP.facets['facet_name'] ) { | |
if ( $.inArray( 'some_value', FWP.facets['facet_name'] ) > -1 ) { | |
// update form value as needed in gravity form | |
} | |
} | |
}); | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment