Created
September 17, 2019 07:25
-
-
Save jaworowicz/3dfded27356b6b4dd402ca3f54540a58 to your computer and use it in GitHub Desktop.
Translated WordPress Text via PHP functions code
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 | |
function my_text_strings( $translated_text, $text, $domain ) { | |
switch ( $translated_text ) { | |
case 'Szczegóły płatności' : | |
$translated_text = __( 'Dane Płatności', 'woocommerce' ); | |
break; | |
case 'Adres rozliczeniowy' : | |
$translated_text = __( 'Dane firmowe', 'woocommerce' ); | |
break;} | |
return $translated_text; | |
} | |
add_filter( 'gettext', 'my_text_strings', 20, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment