The following is the code from WooCommerce to Add Extra Tabs:
My Question is, how to insert a video link, or an iframe in the tab content.

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 tab content.</p>';


How to insert anchor text, or iframe inside “Tab Content”

Any Help would appreciated..


Read more here: WooCommerce Add Extra Tabs – Single Product Page


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: