Add single product Documentation tab

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.

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Scroll to Top
0
Would love your thoughts, please comment.x
()
x
My Cart
0
Subtotal