Change Taxes to GST
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
<?php // don't add this line, since your functions.php file already starts with it. | |
function si_change_taxes_string( $translations, $text, $domain ) { | |
if ( 'sprout-invoices' === $domain ) { | |
// Change "taxes and Taxes" | |
if ( 'taxes' === strtolower( $text ) ) { | |
return 'GST'; | |
} | |
// add more conditions, changing as many strings as you'd like | |
} | |
return $translations; | |
} | |
add_filter( 'gettext', 'si_change_taxes_string', 10, 3 ); |