Last active
June 17, 2020 14:06
-
-
Save mgibbs189/ee7f3992e7da39653322c8ed08beade3 to your computer and use it in GitHub Desktop.
FacetWP - merge data from different facets into one
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
<?php | |
add_filter( 'facetwp_index_row', function( $params, $class ) { | |
if ( in_array( $params['facet_name'], [ 'facet_2', 'facet_3', 'facet_4', 'facet_5' ] ) ) { | |
$params['facet_name'] = 'facet_1'; | |
} | |
return $params; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment