Last active
July 7, 2022 12:22
-
-
Save texe/b56a2ed9b03a431e9a9d281d5d594aba to your computer and use it in GitHub Desktop.
WordPress - Remove SKU in 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
| // remove SKU in WooCommerce | |
| function ct_remove_product_sku($enabled) { | |
| if (! is_admin() && is_product()) { | |
| return false; | |
| } | |
| return $enabled; | |
| } | |
| add_filter( 'wc_product_sku_enabled', 'ct_remove_product_sku' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment