This is used to change the word SKU on WooCommerce
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
/* | |
Replace SKU on WooCommerce for Other word. | |
*/ | |
add_filter('gettext', 'change_sku', 999, 3); | |
function change_sku( $translated_text, $text, $domain ) { | |
if( $text == 'SKU' || $text == 'SKU:' ) return 'CODE'; | |
return $translated_text; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment