@lindsey.homenick
To remove a WooCommerce tab from your product page, you can use the following code:
1 2 3 4 5 6 |
add_filter( 'woocommerce_product_tabs', 'remove_product_tabs', 98 ); function remove_product_tabs( $tabs ) { unset( $tabs['description'] ); // Remove the description tab return $tabs; } |
This code will remove the description tab from your product page. You can customize it to remove other tabs by changing the key in the unset()
function. Just replace 'description'
with the key of the tab you want to remove.
Note: It is recommended to create a child theme before modifying any theme files to avoid losing your changes during theme updates.