Skip to content

Instantly share code, notes, and snippets.

@mehul0810
Created October 19, 2017 13:24
Show Gist options
  • Save mehul0810/9540754a2aceb4567141ed71f991a58e to your computer and use it in GitHub Desktop.
Save mehul0810/9540754a2aceb4567141ed71f991a58e to your computer and use it in GitHub Desktop.
How to Rename Existing Product Data Tabs?
<?php
function mg_woo_rename_tabs( $tabs ) {
// Rename the Description Tab.
$tabs['description']['title'] = __( 'Details', 'your-textdomain-here' );
// Rename the Reviews Tab.
$tabs['reviews']['title'] = __( 'Ratings', 'your-textdomain-here' );
// Rename the Additional Information Tab.
$tabs['additional_information']['title'] = __( 'More Information', 'your-textdomain-here' );
return $tabs;
}
add_filter( 'woocommerce_product_tabs', 'mg_woo_rename_tabs', 98 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment