WC Produkt Tabs umbenennen

[php]

// Tabs umbenennen
add_filter( ‚woocommerce_product_tabs‘, ‚woo_rename_tabs‘, 98 );
function woo_rename_tabs( $tabs ) {

if (isset($tabs[‚description‘][‚title‘])) {
$tabs[‚description‘][‚title‘] = __(‚Versions‘, ‚woocommerce‘); // Renames the tab
} else {
unset($tabs[‚description‘]);
};

if (isset($tabs[‚additional_information‘][‚title‘])) {
$tabs[‚additional_information‘][‚title‘] = __(‚Product Data‘, ‚woocommerce‘); // Renames the tab
} else {
unset($tabs[‚additional_information‘]);
};

return $tabs;

}

[/php]

War dieser Artikel hilfreich?
Nach oben scrollen