Skip to main content
Login Join
Snippet · PHP

Hide WooCommerce Product SKU on Product Pages

Shared by Amit Dholiya · July 15, 2026 · @wc_product_sku_enabled

5 views
Back to Snippets

Steps

  1. Open functions.php.
  2. Add the code below.
  3. Save the file.

Done — the product SKU will no longer be displayed on single product pages.

Notes

function hide_product_sku( $enabled ) {
    return false;
}

add_filter(
    'wc_product_sku_enabled',
    'hide_product_sku'
);
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