Want To Add Extra Images Per Product Variation For Free? Download Now

Show clear link


How can I change the text “Clear” – I need a Danish word “Ryd”.


Br Lars Hansen, Denmark

Rezwan Shiblu

Hi Anja,

Thanks for reaching out to us.

Please try to add below PHP code on your site by using the code snippet plugin.

add_filter( 'gettext', 'anja_variation_swatches_clear_text_change', 20, 3 );
function anja_variation_swatches_clear_text_change( $translated ) {  
    $translated = str_replace("Clear", "Ryd", $translated );
    return $translated;

Let me know if this helps.

Thank you.

Hi Rezwan,

Super, it’s working, thanks!

Br Lars Hansen, Denmark