WooCommerce - excelling eCommerce
[resolved] woocomerce 2, tabs (4 posts)

  1. mariazapata
    Posted 2 years ago #

    I just updated my version of woocomerce to the latest one, and in my old version I added some tabs in the following way:

    add_action( 'woocommerce_product_tabs', 'woocommerce_product_description_tab', 50 );
    				add_action( 'woocommerce_product_tab_panels', 'woocommerce_product_description_panel', 50 );

    Now i dont know how this works on the new version, it seems that there is not woocomerce_product_tabs anymore, or not on the same way as in the post.

    Could you please help with this....
    thanks sooo much in advance.


  2. Roy Ho
    Posted 2 years ago #

    You're correct, tabs are now manipulated with filter hooks. So you would need this instead.

    add_filter( 'woocommerce_product_tabs', 'add_my_tab' );
    function add_my_tab( $tabs ) {
    // add my tab to existing tabs here.
  3. mariazapata
    Posted 2 years ago #

    thanks that helped...
    and I also found this link: http://docs.woothemes.com/document/editing-product-data-tabs/
    which was very helpful

  4. jameskoster
    Plugin Author

    Posted 2 years ago #

    marking as resolved: -)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic