Skip to content

Instantly share code, notes, and snippets.

@cpaul007
Created November 20, 2020 12:14
Show Gist options
  • Save cpaul007/92fbc4336e1de01323505c477ca26095 to your computer and use it in GitHub Desktop.
Save cpaul007/92fbc4336e1de01323505c477ca26095 to your computer and use it in GitHub Desktop.
Change New Total Text
<?php
add_filter( 'gettext_woocommerce', 'ouwoo_new_total_text', 10, 3);
function ouwoo_new_total_text( $translated_text, $text, $domain ) {
switch( $translated_text ) {
case 'New Total:' :
$translated_text = "ENTER YOUR TEXT HERE";
break;
}
return $translated_text;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment