Created
September 29, 2023 12:19
-
-
Save finalwebsites/c13e3a04c6c36ca7bd8e5847e221540d to your computer and use it in GitHub Desktop.
WordPress hooks for the WooCommerce product detail page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// verwijder (dubbele) headings | |
add_filter( 'woocommerce_product_description_heading', '__return_null' ); | |
// verwijder het tabje met de extra informatie | |
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 99 ); | |
function woo_remove_product_tabs( $tabs ) { | |
unset( $tabs['additional_information'] ); | |
return $tabs; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment