Skip to content

Instantly share code, notes, and snippets.

@finalwebsites
Created September 29, 2023 12:19
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 finalwebsites/c13e3a04c6c36ca7bd8e5847e221540d to your computer and use it in GitHub Desktop.
Save finalwebsites/c13e3a04c6c36ca7bd8e5847e221540d to your computer and use it in GitHub Desktop.
WordPress hooks for the WooCommerce product detail page
<?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