Created
November 10, 2016 04:54
-
-
Save MinaPansuriya/7e9b351445c19c31bf0953681ebae645 to your computer and use it in GitHub Desktop.
This file contains 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
/** | |
* @Title: WooCommerce Hide or Remove SKU from Product Page | |
* @Author: Mina Pansuriya | |
* @Website: http://minapansuriya.com | |
*/ | |
add_filter( 'wc_product_sku_enabled', 'pbs_woo_hide_sku_on_product_page' ); | |
function pbs_woo_hide_sku_on_product_page( $sku_visibility ) { | |
if ( is_product() ) { | |
$sku_visibility = false; | |
} | |
return $sku_visibility; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment