Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // WooCommerce - Remove product tabs
- add_filter( 'woocommerce_product_tabs', 'custom_remove_product_tabs', 99 );
- function custom_remove_product_tabs( $tabs ) {
- // opinion is divided as to whether the isset check is necessary, but it doesn't hurt!
- if ( isset( $tabs['description'] ) ) {
- unset( $tabs['description'] ); // remove the description tab
- }
- if ( isset( $tabs['additional_information'] ) ) {
- unset( $tabs['additional_information'] ); // remove the additional information tab
- }
- if ( isset( $tabs['reviews'] ) ) {
- unset( $tabs['reviews'] ); // remove the reviews tab
- }
- return $tabs;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement