Last active
June 11, 2022 23:38
-
-
Save daddiofaddio/998dbefc0d5bbf194f60549736c91945 to your computer and use it in GitHub Desktop.
Woocommerce change "Return to Shop" message (functions.php)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* WOO CHANGE RETURN TO SHOP MESSAGE */ | |
add_filter('gettext', 'ploa_translate_woocommerce_strings', 999, 3); | |
function ploa_translate_woocommerce_strings($translated, $untranslated, $domain) { | |
if (!is_admin() && 'woocommerce' === $domain) { | |
switch ($translated) { | |
case 'Return to shop': | |
$translated = 'Return to awards area.'; | |
break; | |
} | |
} | |
return $translated; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment