Skip to content

Instantly share code, notes, and snippets.

@eltondev
Created November 18, 2015 16:38
Show Gist options
  • Save eltondev/6c6f62ab436501a1d847 to your computer and use it in GitHub Desktop.
Save eltondev/6c6f62ab436501a1d847 to your computer and use it in GitHub Desktop.
Remove tabs from product details page
add_filter( 'woocommerce_product_tabs', 'wc_remove_product_tabs', 98 );
function wc_remove_product_tabs( $tabs ) {
//Not to remove a particular tab , just add the // in front .
unset( $tabs['description'] ); // Description Tab
unset( $tabs['reviews'] ); // Reviews tab
unset( $tabs['additional_information'] ); // Additional Information
return $tabs;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment