Skip to content

Instantly share code, notes, and snippets.

@alltrad3s
Created September 25, 2016 17:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
This is used to change the word SKU on WooCommerce
/*
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