Last active
January 28, 2016 17:36
-
-
Save JudeRosario/3de2a47f7954e0a01e94 to your computer and use it in GitHub Desktop.
WooCommerce Billing Text Fix
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
function custom_wc_text( $translated_text, $untranslated_text, $domain ) { | |
switch ( $untranslated_text ) { | |
case 'The Customizer allows you to preview changes to your site before publishing them. You can also navigate to different pages on your site to preview them.' : | |
$translated_text = 'Put Text Here' ; | |
break; | |
} | |
return $translated_text; | |
} | |
add_filter( 'gettext', 'custom_wc_text', 20, 3 ); |
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
function custom_wc_text( $translated_text, $untranslated_text, $domain ) { | |
if ( is_checkout()|| is_cart() ) { | |
switch ( $untranslated_text ) { | |
case 'Billing Details' : | |
$translated_text = 'Shipping Details' ; | |
break; | |
} | |
} | |
return $translated_text; | |
} | |
add_filter( 'gettext', 'custom_wc_text', 20, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just copy/paste the code into the functions.php file of your child theme or a site specific plugin if you use one.