Skip to content

Instantly share code, notes, and snippets.

@sthembi
Forked from claudiosanches/functions.php
Created February 28, 2014 11:26
Show Gist options
  • Save sthembi/9269484 to your computer and use it in GitHub Desktop.
Save sthembi/9269484 to your computer and use it in GitHub Desktop.
woocommerce - remove tabs
<?php
/**
* Remove default product tabs.
*/
function cs_woocommerce_remove_default_tags( $tabs ) {
// Remove description tab.
if ( isset( $tabs['description'] ) ) {
unset( $tabs['description'] );
}
// Remove additional information tab.
if ( isset( $tabs['additional_information'] ) ) {
unset( $tabs['additional_information'] );
}
// Remove reviews tab.
if ( isset( $tabs['reviews'] ) ) {
unset( $tabs['reviews'] );
}
}
add_filter( 'woocommerce_product_tabs', 'cs_woocommerce_remove_default_tags' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment