Skip to content

Instantly share code, notes, and snippets.

@psaikali
Last active August 29, 2015 14:21
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 psaikali/fe915b1be028b2e0c5d2 to your computer and use it in GitHub Desktop.
Save psaikali/fe915b1be028b2e0c5d2 to your computer and use it in GitHub Desktop.
On supprime l'onglet tab "Information complémentaire", on renomme l'onglet "Description" et "Avis" et on change l'ordre de la tab "Description"
function msk_remove_additionalinfo_tab($tabs) {
unset($tabs['additional_information']);
$tabs['description']['title'] = __('Details', 'msk');
$tabs['reviews']['title'] = __( 'Clients reviews', 'msk' );
$tabs['description']['priority'] = 50;
return $tabs;
}
add_filter('woocommerce_product_tabs', 'msk_remove_additionalinfo_tab', 10);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment