Created
July 24, 2014 09:53
-
-
Save aderaaij/62231528b46fb6b6e066 to your computer and use it in GitHub Desktop.
Remove SKU from product page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment