FacetWP – change number range “Min” and “Max” labels

mgibbs189

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

// Add to your (child) theme’s functions.php

add_filter( ‘gettext’, function( $translated_text, $text, $domain ) {
if ( ‘fwp-front’ == $domain ) {
if ( ‘Min’ == $translated_text ) {
$translated_text = ‘Min (translated)’;
}
elseif ( ‘Max’ == $translated_text ) {
$translated_text = ‘Max (translated)’;
}
}
return $translated_text;
}, 10, 3 );
{{/gist}}