Table of Contents
Remove the description tab only
If you want to remove only the description tab, copy and paste this code:
/** * Remove the description tab from woocommerce */ add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 ); function woo_remove_product_tabs( $tabs ) { unset( $tabs['description'] ); // Remove the description tab return $tabs; }
Remove the review tab only
In case the tab you want to delete is only the review tab, copy and paste this:
/** * Remove the review tab from woocommerce */ add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 ); function woo_remove_product_tabs( $tabs ) { unset( $tabs['reviews'] ); // Remove the reviews tab return $tabs; }
Remove the additional tab only
Paste this snippet if your option is the only additional tab:
/** * Remove the additional tab from woocommerce */ add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 ); function woo_remove_product_tabs( $tabs ) { unset( $tabs['additional_information'] ); // Remove the additional information tab return $tabs; }
Remove all three tabs
If your choice is discarding all these three tabs, this snippet is for you:
/** * Remove tabs from woocommerce */ add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 ); function woo_remove_product_tabs( $tabs ) { unset( $tabs['description'] ); // Remove the description tab unset( $tabs['reviews'] ); // Remove the reviews tab unset( $tabs['additional_information'] ); // Remove the additional information tab return $tabs; }