Skip to content

Instantly share code, notes, and snippets.

@imran-khan1
Last active July 5, 2019 05:59
Show Gist options
  • Save imran-khan1/8841fb70e1a9f390a6574cd0227d011e to your computer and use it in GitHub Desktop.
Save imran-khan1/8841fb70e1a9f390a6574cd0227d011e to your computer and use it in GitHub Desktop.
<?php
/**
* Remove woocommerce product data tabs
*/
function remove_woo_product_data_tabs( $tabs ) {
//unset will remove the product 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', 'remove_woo_product_data_tabs', 98 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment