WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce Custom Product Tabs Lite
[resolved] Adding the custom tab manually (2 posts)

  1. noriise
    Member
    Posted 2 years ago #

    Hello

    Great plugin. I'd like to mod it somewhat and was hoping you may be able to provide a pointer.

    I would like to manually add the php into the product page template to display the custom tab info.

    I tried:

    <?php
    global $WoocommerceCustomProductTabsLite;
    $WoocommerceCustomProductTabsLite->custom_product_tabs_panel(); ?>

    But it caused an error. Any ideas - many many thanks

    Elliot

    http://wordpress.org/extend/plugins/woocommerce-custom-product-tabs-lite/

  2. SkyVerge
    Member
    Plugin Author

    Posted 1 year ago #

    Hey Elliot, I realize this is an old question at this point, but the answer depends on what you're trying to do. If you're trying to move the tabs you'd need to unhook 'woocommerce_output_product_data_tabs' from the 'woocommerce_after_single_product_summary' action.

    If you want to modify the custom tab content you could do so by hooking into the 'woocommerce_custom_product_tabs_lite_content' filter. You really can't output the tabs in the manner you're describing as they are output by WooCommerce core. Well, you could try using the 'woocommerce_output_product_data_tabs()' function

    Hope this helps! Closing the issue out as it's so old

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.