Skip to content

Instantly share code, notes, and snippets.

@nairnwebdesign
Created December 28, 2013 14:55
Show Gist options
  • Save nairnwebdesign/8160260 to your computer and use it in GitHub Desktop.
Save nairnwebdesign/8160260 to your computer and use it in GitHub Desktop.
Remove the description, reviews and additional information tabs from WooCommerce product page.
/**
* Remove product tabs
*
*/
function woo_remove_product_tab($tabs) {
unset( $tabs['description'] ); // Remove the description tab
unset( $tabs['reviews'] ); // Remove the reviews tab
unset( $tabs['additional_information'] ); // Remove the additional information tab
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