The WPFolks app is out on iPhone and Android. Free, no ads. Download on the App Store Get it on Google Play
Skip to main content
Login Join
Snippet · PHP

Remove WooCommerce Product SKU from Product Pages

Shared by Amit Dholiya · September 17, 2026

1 copy
31 views
1 upvote
Back to Snippets

If you don’t want to display the SKU (Stock Keeping Unit) on WooCommerce product pages, you can remove it with a simple filter.

Steps

  1. Add the code below to your theme’s functions.php.
  2. Save the changes.
  3. Open a single product page to verify the SKU is hidden.
/**
 * Hide WooCommerce product SKU
 */
function custom_hide_product_sku( $sku, $product ) {
    return '';
}

add_filter( 'woocommerce_product_get_sku', 'custom_hide_product_sku', 10, 2 );
Know a different way to do this? Add your approach as a variation so folks can compare them side by side.
Submit a variation

0 comments

Proudly supported by