Back to Blog

Remove SKU’s from WooCommerce front-end Product pages

Published on 8 May 2020

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' );
Let's Work Together

Got a project like this in mind?

I build bespoke AI agents, RAG systems, and high-performance WordPress & Next.js sites. Let's talk about what's possible.