Skip to content

Instantly share code, notes, and snippets.

@claudiosanches
Last active December 31, 2015 14:19
Show Gist options
  • Save claudiosanches/7999681 to your computer and use it in GitHub Desktop.
Save claudiosanches/7999681 to your computer and use it in GitHub Desktop.
WooCommerce - Remove default product 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'] );
}
return $tabs;
}
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