Woocommerce rename product tabs with category as condition
-
Hi all,
Try to rename product tabs with category as condition.
I get only the result of the else clause. What I need to do toe get it work?
I use following code:/* Rename Tabs */ add_filter( 'woocommerce_product_tabs', 'woo_rename_tabs', 98 ); function woo_rename_tabs( $tabs ) { if ( is_product_category( 'Mixer' ) ) { $tabs['additional_information']['title'] = __( 'Technische Daten' ); $tabs['description']['title'] = __( 'Produktbeschreibung' ); return $tabs; } else { $tabs['additional_information']['title'] = __( 'Produktdaten' ); $tabs['description']['title'] = __( 'Produktbeschreibung' ); return $tabs; } }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Woocommerce rename product tabs with category as condition’ is closed to new replies.