Hide SKU, Categories and Tags on Product Pages
Removes the meta block below the add to cart button that lists the SKU, categories and tags of the product.
Opens WPIDE on
Code
add_action( 'woocommerce_before_single_product', function () {
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40 );
} );
Notes
To hide only the SKU, use the "Hide SKUs on the Front End" snippet instead.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.