We have this true/false option we can set to hide/show SKU .
wc_product_sku_enabled
src:
https://docs.woocommerce.com/wc-apidocs/function-wc_product_sku_enabled.html
To use it, add following in your theme’s functions.php file:
add_filter( 'wc_product_sku_enabled', '__return_false' );
Above code will disable SKU for both Admin and Front-end.
If you want only to disable it for Front-end product page only, you can add following custom function:
function wm_hide_product_page_skus( $enabled ) {
if ( ! is_admin() && is_product() ) {
return false;
}
return $enabled;
}
add_filter( 'wc_product_sku_enabled', 'wm_hide_product_page_skus' );