How to remove woocommerce tab?

by lindsey.homenick , in category: PHP CMS , a month ago

How to remove woocommerce tab?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by darrion.kuhn , a month ago


To remove a WooCommerce tab from your product page, you can use the following code:

  1. Go to Appearance > Theme Editor in your WordPress dashboard.
  2. Find and open the functions.php file of your theme.
  3. Add the following code snippet to remove the tab:
add_filter( 'woocommerce_product_tabs', 'remove_product_tabs', 98 );

function remove_product_tabs( $tabs ) {
    unset( $tabs['description'] ); // Remove the description tab
    return $tabs;

  1. Save your changes.

This code will remove the description tab from your product page. You can customize it to remove other tabs by changing the key in the unset() function. Just replace 'description' with the key of the tab you want to remove.

Note: It is recommended to create a child theme before modifying any theme files to avoid losing your changes during theme updates.