The Description Data Tab is one of the three tabs that you will find on a WooCommerce product page.
The Description tab displays the detailed description of a product.
Remove the Description on the WooCommerce Product Page
Some website owners do not want to display descriptions. This can be because of the language barrier. In that case, removing it instead of leaving it empty as it ruins the user experience would be ideal.
So, if you want to remove the ‘Description’ tab, you can use the code snippet below.
php
/**
* Remove WooCommerce Description Tab
*
* @param array $tabs
* @return array $tabs
*/
function maverick_remove_woocommerce_description_tab($tabs)
{
unset($tabs['description']);
return $tabs;
}
add_filter('woocommerce_product_tabs', 'maverick_remove_woocommerce_description_tab', 98);
Rename the ‘Description’ Tab on the WooCommerce Product Page
If you want to rename the ‘Description’ tab, you can use the code snippet below.
php
/**
* Rename WooCommerce 'Description' Tab
*
* @param array $tabs
* @return array $tabs
*/
function maverick_rename_woocommerce_description_tab($tabs)
{
$tabs['description']['title'] = __( 'More Information' );
return $tabs;
}
add_filter('woocommerce_product_tabs', 'maverick_rename_woocommerce_description_tab', 98);