WooCommerce Add Extra Tabs – Single Product Page

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..

Cheers

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

Leave a Reply

Your email address will not be published. Required fields are marked *