Entweder den Code als Snippet hinzufügen, oder auf ein Plugin ausweichen:
Last active
August 24, 2020 05:01
-
-
Save MrThiemann/02072cba206dbc5f3a4369efc917c7e1 to your computer and use it in GitHub Desktop.
woo-translation
This file contains hidden or 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
<?php | |
// Übersetzungen und Texte anpassen | |
add_filter('gettext', 'translate_text'); | |
add_filter('ngettext', 'translate_text'); | |
function translate_text($translated) { | |
$translated = str_ireplace('view details', 'Weiterlesen', $translated); | |
$translated = str_ireplace('Add to Card', 'in den Warenkorb', $translated); | |
return $translated; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment