mgibbs189

{{gist file=”functions.php” lang=”php”}}
<?php

add_filter( ‘facetwp_index_row’, function( $params, $class ) {
if ( ‘farge’ == $params[‘facet_name’] ) {
$params[‘facet_display_value’] = get_term_meta( $params[‘term_id’], ‘color’, true );
}
return $params;
}, 10, 2 );
{{/gist}}