Skip to content

Instantly share code, notes, and snippets.

@psaikali

psaikali/functions.php

Last active Aug 29, 2015
Embed
What would you like to do?
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
You can’t perform that action at this time.