Skip to content

Instantly share code, notes, and snippets.

@alltrad3s
Created September 25, 2016 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alltrad3s/eea0241b0205fe91adc6fcfcb5cf74cb to your computer and use it in GitHub Desktop.
Save alltrad3s/eea0241b0205fe91adc6fcfcb5cf74cb to your computer and use it in GitHub Desktop.
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