Created
January 24, 2021 12:13
-
-
Save mzdebo/64d24c9e26a3f7418f65595ff7537fa5 to your computer and use it in GitHub Desktop.
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
/*********** | |
* Hide sku | |
************/ | |
function sv_remove_product_page_skus( $enabled ) { | |
if ( ! is_admin() && is_product() ) { | |
return false; | |
} | |
return $enabled; | |
} | |
add_filter( 'wc_product_sku_enabled', 'sv_remove_product_page_skus' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment