October 19, 2017 at 2:27 pm
Hi,
Would like to remove the tabs on products in WooCommerce. And instead show all in sequence.
Found this code.
/**
* Remove existing tabs from single product pages.
unset( $tabs['kad_custom_tab_01'] );
*/
function remove_woocommerce_product_tabs( $tabs )
{
unset( $tabs['description'] );
unset( $tabs['additional_information'] );
unset( $tabs['video_tab'] );
unset( $tabs['kad_custom_tab_01'] );
unset( $tabs['kad_custom_tab_02'] );
unset( $tabs['kad_custom_tab_03'] );
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_summary', 'woocommerce_product_description_tab' );
add_action( 'woocommerce_after_single_product_summary', 'woocommerce_product_additional_information_tab' );
add_action( 'woocommerce_after_single_product_summary', 'tab_XXXXXXXXXXXXXXXX' );
add_action( 'woocommerce_after_single_product_summary', 'tab_XXXXXXXXXXXXXXXX' );
add_action( 'woocommerce_after_single_product_summary', 'tab_XXXXXXXXXXXXXXXX' );
add_action( 'woocommerce_after_single_product_summary', 'tab_XXXXXXXXXXXXXXXX' );
But I do not manage to call back Video and the custom tabs. Can anyone here help me?
Best regards
Fredrik