Skip to content

Instantly share code, notes, and snippets.

@texe
Created July 7, 2022 13:37
Show Gist options
  • Save texe/693c69cae45ae4c0d604febcdefc583d to your computer and use it in GitHub Desktop.
Save texe/693c69cae45ae4c0d604febcdefc583d to your computer and use it in GitHub Desktop.
WooCommerce - Rename tabs
/**
* Rename product data tabs
*/
add_filter( 'woocommerce_product_tabs', 'woo_rename_tabs', 98 );
function woo_rename_tabs( $tabs ) {
// Rename the description tab
$tabs['description']['title'] = __( 'More Information' );
// Rename the reviews tab
$tabs['reviews']['title'] = __( 'Ratings' );
// Rename the additional information tab
$tabs['additional_information']['title'] = __( 'Product Data' );
return $tabs;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment