Created
October 19, 2017 13:24
-
-
Save mehul0810/9540754a2aceb4567141ed71f991a58e to your computer and use it in GitHub Desktop.
How to Rename Existing Product Data Tabs?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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