Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'woocommerce_product_tabs', 'removing_product_tabs', 98 );
- function removing_product_tabs( $tabs ) {
- // Get the global product object
- global $product;
- // HERE define your specific product Ids
- $targeted_ids = array( 37, 56, 63 );
- if( $product->is_type( 'simple' ) && in_array( $product->get_id(), $targeted_ids ) ) {
- unset( $tabs['description'] ); // Remove the description tab
- unset( $tabs['reviews'] ); // Remove the reviews tab
- unset( $tabs['additional_information'] ); // Remove the additional information tab
- }
- r
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement