Merge WC product tabs ( Description + Additional info )
add_filter( 'woocommerce_product_tabs', 'vagelis_dev_merge_tabs', 99 ); | |
function vagelis_dev_merge_tabs( $tabs ) { | |
$tabs['description']['callback'] = function() { | |
global $product; | |
the_content(); | |
do_action( 'woocommerce_product_additional_information', $product ); | |
}; | |
unset( $tabs['additional_information'] ); | |
return $tabs; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment