Created
September 9, 2016 01:11
-
-
Save prajwal-stha/dab1740f5307d048edbcb10b2172eb9a to your computer and use it in GitHub Desktop.
Utilizing the GetText Filter
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
function translate_string( $translated_text, $untranslated_text, $domain ) { | |
if ( $translated_text == 'Related Products') { | |
$translated_text = __( 'Other Great Products', 'woocommerce' ); | |
} | |
return $translated_text; | |
} | |
add_filter( 'gettext', 'translate_string', 15, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment