facetwp has term

djrmom

{{gist file=”custom-hooks.php” lang=”php”}}
<?php

add_filter( ‘facetwp_index_row’, function( $params, $class ) {
if ( ‘my_facet_name’ == $params[‘facet_name’] ) { // change my_facet_name to the name of your facet
$params[‘facet_value’] = “1”;
$params[‘facet_display_value’] = ‘Has Term’; // change Has Term to whatever you want for a label
}
return $params;
}, 10, 2 );
{{/gist}}