Skip to content

Instantly share code, notes, and snippets.

@robin-scott
Created January 31, 2018 09:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robin-scott/d47632a557a0585ac57ed5bc50a6c112 to your computer and use it in GitHub Desktop.
Save robin-scott/d47632a557a0585ac57ed5bc50a6c112 to your computer and use it in GitHub Desktop.
Remove woocommerce description tab
// add this to functions.php, a custom plugin, or a snippets plugin to remove the description tab in woocommerce
// by Robin Scott of Silicon Dales - full info at https://silicondales.com/tutorials/woocommerce-tutorials/remove-description-tab-woocommerce/
add_filter( 'woocommerce_product_tabs', 'sd_remove_product_tabs', 98 );
function sd_remove_product_tabs( $tabs ) {
unset( $tabs['description'] );
return $tabs;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment