Created
November 3, 2014 14:20
-
-
Save ejntaylor/e95aed633f909a29d7ee to your computer and use it in GitHub Desktop.
Translate WooCommerce Text
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 | |
// Cart - Basket Text | |
function wpa_change_my_basket_text( $translated_text, $text, $domain ){ | |
if( $domain == 'woothemes' && $translated_text == 'Cart:' ) | |
$translated_text = 'Basket:'; | |
return $translated_text; | |
} | |
add_filter( 'gettext', 'wpa_change_my_basket_text', 10, 3 ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment