Custom Tab Hook
-
Hi,
I’m using this plugin to show a custom enquiry tab (contact7 form) and it’s working pretty good.
Problems comes when I try to display it as I display the whole page, I use this code in my theme’s function
function remove_woocommerce_product_tabs( $tabs ) { unset( $tabs['description'] ); unset( $tabs['reviews'] ); unset( $tabs['additional_information'] ); return $tabs; } add_filter( 'woocommerce_product_tabs', 'remove_woocommerce_product_tabs', 98 ); /** * Hook in each tabs callback function after single content. */ add_action( 'woocommerce_after_single_product', 'woocommerce_product_description_tab' ); add_action( 'woocommerce_after_single_product', 'woocommerce_product_additional_information_tab' );
So tabs are dispayed and opened in the page.
I can’t find the hook I need to add to display also the custom tab in “woocommerce_after_single_product” and I also can’t actually remove it like I’ve done with other tabs.Any help will be very appreciated.
Thank you
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom Tab Hook’ is closed to new replies.