aderaaij
7/24/2014 - 9:53 AM

Remove SKU from product page

Remove SKU from product page

<?php

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