facetwp yes not

djrmom

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

add_filter( ‘facetwp_index_row’, function( $params, $class ) {
if ( ‘walking_mobility’ == $params[‘facet_name’] ) {
if ( “No” == $params[‘facet_display_value’] ) {
$params[‘facet_value’] = ”; // skip indexing
} elseif ( “Yes” == $params[‘facet_display_value’] ) {
$params[‘facet_display_value’] = ‘Walking Mobility’;
}
}
return $params;
}, 10, 2 );
{{/gist}}