<?php
add_filter( 'facetwp_index_row', function( $params, $class ) {
if ( 'weight' == $params['facet_name'] ) {
$params['facet_value'] = str_replace( '-', '.', $params['facet_value'] );
}
return $params;
}, 10, 2 );
Code snippets for FacetWP
<?php
add_filter( 'facetwp_index_row', function( $params, $class ) {
if ( 'weight' == $params['facet_name'] ) {
$params['facet_value'] = str_replace( '-', '.', $params['facet_value'] );
}
return $params;
}, 10, 2 );