Created
October 5, 2014 11:53
-
-
Save michaelcarwile/0970d85b655b437f1c34 to your computer and use it in GitHub Desktop.
Modify text strings in WordPress
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
<?php | |
//* Modify text strings | |
//* Hat-tip: http://speakinginbytes.com/2013/10/gettext-filter-wordpress/ | |
function dw_text_strings( $translated_text, $text, $domain ) { | |
switch ( $translated_text ) { | |
case 'Related Products' : | |
$translated_text = __( 'More T-Shirts', 'woocommerce' ); | |
break; | |
} | |
return $translated_text; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment