How to add single product Documentation tab
add_filter( 'woocommerce_product_tabs', 'jkpagency_add_single_product_doc_tab' );
function jkpagency_add_single_product_doc_tab( $tabs ) {
// Add single product Documentation tab
$tabs['documentation'] = array(
'title' => __( 'Documentation', 'woocommerce' ),
'priority' => 19,
'callback' => 'doc_tab_content'
);
return $tabs;
}
function doc_tab_content() {
echo 'To download docs go follow this link.';
}
More to come soon.