Skip to content

Instantly share code, notes, and snippets.

@jayseventwo
Created November 7, 2017 00:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jayseventwo/32d5f0e143e48f9703c5c423a759b11a to your computer and use it in GitHub Desktop.
Save jayseventwo/32d5f0e143e48f9703c5c423a759b11a to your computer and use it in GitHub Desktop.
Rename woocommerce tabs
add_filter( 'woocommerce_product_tabs', 'woo_rename_tabs', 98 );
function woo_rename_tabs( $tabs ) {
$tabs['description']['title'] = __( 'More Information' ); // Rename the description tab
$tabs['reviews']['title'] = __( 'Ratings' ); // Rename the reviews tab
$tabs['additional_information']['title'] = __( 'Product Data' ); // Rename the additional information tab
return $tabs;
}
https://docs.woocommerce.com/document/editing-product-data-tabs/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment