WordPress.org

Support

Support » Plugins and Hacks » WooCommerce » [Resolved] [Plugin: WooCommerce – excelling eCommerce] remove description and review page

[Resolved] [Plugin: WooCommerce – excelling eCommerce] remove description and review page

Viewing 1 replies (of 1 total)
  • The tabs (including corresponding panels) are added by the following actions:

    add_action( 'woocommerce_product_tabs', 'woocommerce_product_description_tab', 10 );
    add_action( 'woocommerce_product_tabs', 'woocommerce_product_attributes_tab', 20 );
    add_action( 'woocommerce_product_tabs', 'woocommerce_product_reviews_tab', 30 );
    add_action( 'woocommerce_product_tab_panels', 'woocommerce_product_description_panel', 10 );
    add_action( 'woocommerce_product_tab_panels', 'woocommerce_product_attributes_panel', 20 );
    add_action( 'woocommerce_product_tab_panels', 'woocommerce_product_reviews_panel', 30 );

    You can remove all of them, by reversing this add_action() function and using remove_action() calling with the same arguments. For example to remove the reviews tab and panel:

    remove_action( 'woocommerce_product_tabs', 'woocommerce_product_reviews_tab', 30 );
    remove_action( 'woocommerce_product_tab_panels', 'woocommerce_product_reviews_panel', 30 );

    This code should go in your (child) themes functions.php, or create a plugin out of it.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] [Plugin: WooCommerce – excelling eCommerce] remove description and review page’ is closed to new replies.
Skip to toolbar