Created
November 19, 2014 05:20
-
-
Save balos1/151883ad672a6d2b55c6 to your computer and use it in GitHub Desktop.
De-SKU Woocommerce
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 | |
/** | |
* Plugin Name: De-SKU-Woo | |
* Plugin URI: https://github.com/cojomojo/De-SKU-Woo | |
* Description: Remove the SKU from Woocommerce products. | |
* Version: 0.1 | |
* Author: Cody Balos | |
* Author URI: https://github.com/cojomojo | |
* License: MIT | |
* | |
*/ | |
/** | |
* Remove "SKU" from a single product page. | |
*/ | |
add_filter( 'wc_product_sku_enabled', 'de_SKU_woo' ); | |
function de_SKU_woo( $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