WordPress FacetWP – change “Min” and “Max” labels [closed]

Question

I have a slight problem for renaming facets individually
as said here on this page,
this code rename all the min and max for all facets range number.

<?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 );

I have a facet price and another area.

I would like to rename their placeholders independently.

if somebody understands the code which line I must add to allow me this modification?

thank you for your patience

0
newneo 2 years 2020-10-09T19:12:24-05:00 0 Answers 14 views 0

Leave an answer

Browse
Browse