Skip to content

Instantly share code, notes, and snippets.

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