{"id":18955501,"date":"2026-07-03T17:27:31","date_gmt":"2026-07-03T17:27:31","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/reset-button-translation\/"},"modified":"2026-07-03T17:27:31","modified_gmt":"2026-07-03T17:27:31","slug":"reset-button-translation","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/reset-button-translation\/","title":{"rendered":"Reset button translation"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hello, <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I first  try this snippet : <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">add_filter( &#8216;yith_wcapf_reset_filters_label&#8217;, &#8216;change_yith_reset_button_text&#8217; );<br \/>function change_yith_reset_button_text() {<br \/>return &#8216;Effacer les filtres&#8217;; \/\/ Change this text to whatever you want<br \/>}<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">not working <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I tried this one:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">add_filter( &#8216;gettext&#8217;, &#8216;custom_yith_reset_button_text&#8217;, 20, 3 );<br \/>function custom_yith_reset_button_text( $translated_text, $text, $domain ) {<br \/>\/\/ Only target text within the YITH Ajax Product Filter plugin domain<br \/>if ( &#8216;yith-woocommerce-ajax-navigation&#8217; === $domain ) {<br \/>if ( &#8216;Reset filters&#8217; === $text || &#8216;Reset&#8217; === $text ) {<br \/>return &#8216;Effacer les filtres&#8217;; \/\/ Your custom text here<br \/>}<br \/>}<br \/>return $translated_text;<br \/>}<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Not working either. Do you have a solution please?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u00b8Thanks<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">GJ<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"template":"","class_list":["post-18955501","topic","type-topic","status-publish","hentry","topic-tag-reset-button"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18955501","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18955501\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18955501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}