Add another Additional tab
-
Can I get any help from here to add another Additional tab ?
Check the screenshot
Attachments:
You must be
logged in to view attached files.
Hello,
You have added everything correctly. What problem do you have? Please clarify the problem.
One remark: if your delivery terms are common for all the products you would better add the same in the Theme Settings > Product page > Tabs. This tab is globally displayed in all the products and you do not need to enter each product and insert.
Best Regards
Thanks for reply 🙂
Actually, I wanted to mean how to add another additional tab that I can add more global tab.
I got the below code in woocommerce and it solved my problem. I hope it will help other users who want to add more global tab with short-code.
/**
* Add a custom product data 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' => __( 'Change tab title here', 'woocommerce' ),
'priority' => 60,
'callback' => 'woo_new_product_tab_content'
);
return $tabs;
}
function woo_new_product_tab_content() {
// The new tab content
echo '<h2>Tab Title/h2>';
echo do_shortcode( '[html_block id="1234"]' );
Hello,
Thank you for sharing the information. If you have any questions please feel free to contact us.
Best Regards
The topic ‘Add another Additional tab’ is closed to new replies.