WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. mariazapata
    Member
    Posted 1 year ago #

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

    http://wordpress.org/extend/plugins/woocommerce/

  2. Roy
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year ago #

    marking as resolved: -)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic