Remove "SKU" from single product page

This article explains how to remove the "SKU" from the single product page in WooCommerce.

SKU on single product page.
1

Create a custom plugin

If you haven't done so already, create a custom plugin.

2

Add custom code

Add the following custom code to your custom plugin.

/**
 * Remove "SKU" from WooCommerce single product details page.
 */
add_filter( 'wc_product_sku_enabled', 'mycode_remove_sku_from_single_product_page' );
function mycode_remove_sku_from_single_product_page( $boolean ) {
	if ( is_single() ) {
		$boolean = false;
	}

	return $boolean;
}
	
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us