Reply To: Empty Tabs are not hidden

Home Page Forums WooCommerce Custom Tabs Empty Tabs are not hidden Reply To: Empty Tabs are not hidden





I found the problem, but fixing it leads to another problem:

I’m using WPML and wanted to translate the description of the custom tabs. For example “accessories” to “Zubehör”. As the description of the tabs isn’t shown in the string translation I added this code to my funtions.php:

add_filter( ‘woocommerce_product_tabs’, ‘woo_rename_tabs’, 98 );
function woo_rename_tabs( $tabs ) {

$tabs[‘additional_information’][‘title’] = __( ‘Technical Data’ );
$tabs[‘scope’][‘title’] = __( ‘Applications’ );
$tabs[‘accessories’][‘title’] = __( ‘Accessories’ );

return $tabs;


That way the custom tabs showed up on the string translation and I was able to translate them into german. But then the described problem with the empty tabs not hiding appeared. As I deleted this code again the tabs are hidden correctly but aren’t translated anymore.

Could you please help me either to find a way to translate the custom tab names or to fix the problem if I use my workaround?

Thank you!