Renaming a product data tab
-
Hi,
i am trying to rename my product data tabs but somehow 1 changes perfectly and the other just does not. I have this in my functions.php file in my child theme and somehow the description tab will not change.
<?php // add_filter( 'woocommerce_product_tabs', 'woo_reorder_tabs', 98 ); function woo_reorder_tabs( $tabs ) { $tabs['additional_information']['priority'] = 5; // Additional information first $tabs['description']['priority'] = 10; // Description second return $tabs; } add_filter( 'woocommerce_product_tabs', 'woo_rename_tabs', 98 ); function woo_rename_tabs( $tabs ) { $tabs['description']['title'] = __( 'randomtitlehere' ); // Rename the description tab $tabs['additional_information']['title'] = __( 'kersentaart' ); // Rename the additional information tab return $tabs; }
What am i doing wrong here?
Thanks all,
Sjoerd
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Renaming a product data tab’ is closed to new replies.