WooCommerce has documentation on how to add a single extra tab at the bottom of the woocommerce product pages. The code is inserted into the functions.php and is editable.
I'm just wondering how to add a bunch more tabs into the functions.php without them clashing with each other. What is the code that I need to add for the 2nd and 3rd extra tab.
Here is the code from woocommerce for the first tab:
add_filter( 'woocommerce_product_tabs', 'woo_new_product_tab' );
function woo_new_product_tab( $tabs ) {
// Adds the new tab
$tabs['test_tab'] = array(
'title' => __( 'New Product Tab', 'woocommerce' ),
'priority' => 50,
'callback' => 'woo_new_product_tab_content'
);
return $tabs;
}
function woo_new_product_tab_content() {
// The new tab content
echo '<h2>New Product Tab</h2>';
echo '<p>Here\'s your new product tab.</p>';
}