Home » WooCommerce: Hide SKU @ Single Product Page

WooCommerce: Hide SKU @ Single Product Page

by Tutor Aspire

This is a very common task. As a WooCommerce store manager, sometimes you need to hide the SKU field on the single product page, while keeping it in the backend (Product Edit page) for order tracking and product import/export purposes.

Here’s a simple snippet you can use to remove the SKU immediately 🙂

WooCommerce: hide SKU on the front-end

PHP Snippet: Hide “SKU” @ WooCommerce Single Product Page

/**
 * @snippet       Hide SKU @ Single Product Page - WooCommerce
 * @how-to        Get tutoraspire.com FREE
 * @author        Tutor Aspire
 * @compatible    WC 3.8
 * @donate $9     https://www.tutoraspire.com
 */
 
add_filter( 'wc_product_sku_enabled', 'tutoraspire_remove_product_page_sku' );
 
function tutoraspire_remove_product_page_sku( $enabled ) {
    if ( ! is_admin() && is_product() ) {
        return false;
    }
    return $enabled;
}

Is There a Plugin For That?

If you’d love to code but don’t feel 100% confident with PHP, I decided to look for reliable plugins that achieve the same result. As usual, I’ve chosen WooCommerce plugin vendors based on marketplace reputation, dedicated support quality, code cleanliness, long-term reliability and – probably almost as importantly – where the “people behind” the plugin are active supporters of the WordPress ecosystem.

1. WooCustomizer

Sold by: WooCustomizer – Developed by: Zack Viljoen – 14 Day Money Back Guarantee

Editing the SKU visibility on the single product page is one of the features of WooCustomizer, a plugin built for everyone who wants to fully customize their WooCommerce store without coding (e.g. edit buttons, badges, tabs, pages, stock display, checkout fields).

You may also like