mgibbs189

{{gist file=”gistfile1.txt” lang=”text”}}
add_filter( ‘facetwp_index_row’, function( $params, $class ) {
if ( ‘categories’ == $params[‘facet_name’] ) {
$excluded_terms = array( ‘Income’, ‘Uncategorized’ );
if ( in_array( $params[‘facet_display_value’], $excluded_terms ) ) {
return false;
}
}
return $params;
}, 10, 2 );
{{/gist}}