Steps
- Open
functions.php. - Add the code below.
- Save the file.
Done — the product SKU will no longer be displayed on single product pages.
Notes
- Hides SKUs across WooCommerce product pages.
- Does not remove the SKU from the admin area.
function hide_product_sku( $enabled ) {
return false;
}
add_filter(
'wc_product_sku_enabled',
'hide_product_sku'
);