Code
-
How can I remove tabs from the product description using this code?
/**
* Remove product data tabs
*/
add_filter( ‘woocommerce_product_tabs’, ‘woo_remove_product_tabs’, 98 );function woo_remove_product_tabs( $tabs ) {
unset( $tabs[‘description’] ); // Remove the description tab
unset( $tabs[‘reviews’] ); // Remove the reviews tab
unset( $tabs[‘additional_information’] ); // Remove the additional information tabreturn $tabs;
}The page I need help with: [log in to see the link]
- The topic ‘Code’ is closed to new replies.