Remove SKU’s from WooCommerce front-end Product pages

While you can remove the SKU from the front-end of store product pages with some CSS, I always prefer to remove this with a quick filter:

// remove skus from product page front end
function pro_remove_product_page_skus( $enabled ) {
    if ( ! is_admin() && is_product() ) {
        return false;
    }
    return $enabled;
}
add_filter( 'wc_product_sku_enabled', 'pro_remove_product_page_skus' );

Useful post? Share it

Leave a Reply

Your email address will not be published. Required fields are marked *