Skip to content

Instantly share code, notes, and snippets.

@ville6000
Created January 8, 2019 10:23
Show Gist options
  • Save ville6000/f5a4670ef7e89a4fb6f1e93cf13a7bf2 to your computer and use it in GitHub Desktop.
Save ville6000/f5a4670ef7e89a4fb6f1e93cf13a7bf2 to your computer and use it in GitHub Desktop.
WooCommerce remove product tabs
<?php
/**
* Remove product data tabs
*
* @param array $tabs Array of product tabs.
*
* @return array
*/
function theme_remove_product_tabs( $tabs ) {
unset( $tabs['description'] );
unset( $tabs['reviews'] );
unset( $tabs['additional_information'] );
return $tabs;
}
add_filter( 'woocommerce_product_tabs', 'theme_remove_product_tabs', 98 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment