Skip to content

Instantly share code, notes, and snippets.

@imran-khan1
Last active July 5, 2019 05:59
Show Gist options
  • Save imran-khan1/bd57a90a2bb4c96f89c47118c52b2ecd to your computer and use it in GitHub Desktop.
Save imran-khan1/bd57a90a2bb4c96f89c47118c52b2ecd to your computer and use it in GitHub Desktop.
<?php
/**
* Rename product data tabs
*/
add_filter( 'woocommerce_product_tabs', 'woo_rename_tabs', 98 );
function woo_rename_tabs( $tabs ) {
$tabs['description']['title'] = __( 'More Detail' ); // 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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment