• Resolved olvikmor

    (@olvikmor)


    Hello. Is it possible to translate “Max price” and “Min price” into chips?
    I can’t find these phrases in plugin settings or in filter-everthing.pot.
    In the woocommerce language file, these phrases are translated correctly, but the plugin does not take these phrases from the woocommerce translation.

    Screenshoot: https://ibb.co/0KDSCmW

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author stepasyuk

    (@stepasyuk)

    Hello @olvikmor

    Thank you for using Filter Everything.

    You can change it with hook wpc_chips_term_name

    apply_filters( 'wpc_chips_term_name', $term->name, $term, $filter ),

    Where $term->name is the value you should change.

    Thread Starter olvikmor

    (@olvikmor)

    Sorry, but i don’t know PHP very well.
    I tried to use this code:
    function maxhinta() {
    if( $term->name == ‘Max price’ ) $term->name =’Max hinta’;
    return $term->name;
    }
    add_filter( ‘wpc_chips_term_name’, ‘maxhinta’);

    but it removed all the chips.
    Could you give a slightly more detailed answer?
    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Translation of “Max price” and “Min price” in chips’ is closed to new replies.