Skip to content

Instantly share code, notes, and snippets.

@brandalismo
Last active March 21, 2017 20:30
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 brandalismo/927afdc34778f698686df9c12bef65b5 to your computer and use it in GitHub Desktop.
Save brandalismo/927afdc34778f698686df9c12bef65b5 to your computer and use it in GitHub Desktop.
/*
* DESHABILITAR PESTAÑAS DE LA FICHA DE PRODUCTO
*/
function woo_remove_product_tab($tabs) {
unset( $tabs['description'] ); // Eliminar la pestaña de Descripción
unset( $tabs['reviews'] ); // Eliminar la pestaña de Valoraciones
unset( $tabs['additional_information'] ); // Eliminar la pestaña de Información Adicional
return $tabs;
}
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tab', 98);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment