Mika MAtikainen

Apr 15, 2020 · 4 min read

How to Add Custom Product Tab in Woocommerce?

add_filter( 'woocommerce_product_tabs', 'wps_woo_new_product_tab' );
function wps_woo_new_product_tab( $tabs ) 
{
    // Adds the new tab
    $tabs['test_tab'] = array(
    'title' => __( 'New Product Tab', 'woocommerce' ),
    'priority' => 50,
    'callback' => 'wps_woo_new_product_tab_content'
);
    return $tabs;
}

function wps_woo_new_product_tab_content() {
// The new tab content
    echo 'New Product Tab';
    echo 'Here\'s your new product tab.';
}

Subscribe To Our Newsletter

Join our mailing list to receive the latest news and updates from our team.

You have Successfully Subscribed!

Share This