WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[resolved] Hooks in 2.0.1 (3 posts)

  1. ellnut
    Member
    Posted 1 year ago #

    How do I use hooks to remove the Product Description, Description tab, and Reviews tab from individual products? I used to use this code:

    // Remove related products
    remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20);
    // Remove product tab, reviews, and description
    remove_action( 'woocommerce_product_tabs', 'woocommerce_product_description_tab', 10 );
    remove_action( 'woocommerce_product_tabs', 'woocommerce_product_reviews_tab', 30 );
    remove_action( 'woocommerce_product_tab_panels', 'woocommerce_product_description_panel', 10 );
    remove_action( 'woocommerce_product_tab_panels', 'woocommerce_product_reviews_panel', 30 );

    When I updated to the most recent version, that code no longer works. Here's an example product from my site: http://artfusion19464.org/shop/classes-for-kids/crafty-kids-ages-7-12-with-julie-tonnessen/

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

  2. Roy Ho
    Member
    Posted 1 year ago #

  3. ellnut
    Member
    Posted 1 year ago #

    Awesome - that worked. Thanks, splashingpixels :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.