• Hi,

    I need to add some new tabs to product page I have the following code that added a tab:

    add_filter( 'woocommerce_product_tabs', 'woo_new_product_tab' );
    function woo_new_product_tab( $tabs ) {
                    // Adds the new tab
                    $my_tab = array( 'woo_new_product_tab' =>  array(
                                    'title'      => __( 'New Product Tab'),
                                    'priority'               => 9,
                                    'callback'              => 'woo_new_product_tab_content'
                    ));
    return array_merge( $my_tab, $tabs );
    }
    function woo_new_product_tab_content() {
    
                    // The new tab content
    
                    echo '<h2>New Product Tab</h2>';
                    echo '<p></p>';
    }

    What I need now is to add the tab to product admin page, so I will be able add the content for each product in the admin page and not hardcode.
    I also need to add more than 1 tab.

    I am using woocommerce plugin.
    creative 5.0 theme

    Thank you,
    Raffael

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to add new tabs to admin product page’ is closed to new replies.