Viewing 15 replies - 1 through 15 (of 25 total)
  • you can completely remove reviews by using this filter

    file is:
    yourtheme/functions.php

    add_filter( 'woocommerce_product_tabs', 'sb_woo_remove_reviews_tab', 98);
    function sb_woo_remove_reviews_tab($tabs) {
    
     unset($tabs['reviews']);
    
     return $tabs;
    }
    Thread Starter peyote

    (@peyote)

    Thank you very much!

    Thanks for this.

    Although this option should probably be a toggle on/off option in the WooCommerce settings!

    You can also use a plugin like: https://www.ads-software.com/plugins/disable-comments/ to disable comments. Reviews just use the comments feature for the product custom post type. So if you disable all comments, or just on the Products custom post type, it’ll remove the tab on the product page as well.

    Thank You Very much WeddingAlbumCafe

    Hi WeddingAlbumCafe

    thanks

    Hi

    I am a total amateur with this at present, so do you just copy and paste that?

    Thanks

    @thejunkiemonkey just use the plugin I mentioned: https://www.ads-software.com/plugins/disable-comments/ it makes it super easy.

    Hi Tevya

    Once downloaded How do I attach it to the site?

    Thanks

    The easiest way is from inside the WP Admin. Plugins>Add New search for “disable comments”.

    Thanks Tevya – I love finding a clear, quick fix to a problem.

    The Disable Comments plugin was exactly what I was looking for to turn off Reviews on a WooCommerce site.

    No problem. We use it on most our sites, because we usually want to at least disable comments on pages and media. Nothing more annoying than getting spam on an image attachment page. Sometimes we also use it to disable on posts & WooCommerce products (or everything), as well.

    Roy Ho

    (@splashingpixelscom)

    In case you didn’t know there is already a ON/OFF setting in the products/advance setting to turn off comments/reviews.

    Yes, I think we were aware @splashing, but that’s a per-product setting. Just like the per-post/page setting. This plugin (or the code provided above) does it for all of them. Without it, you’d have to change it manually for every product (or post, page, etc).

    @splashingpixels.com – Yes, that’s true, but as Tevya points out it’s sometimes very desirable to be able to globally disable comments rather than having to set it granularly, especially if a number of posts, pages or products have been entered with comments/reviews enabled.

    The other issue is that some themes will display a comments or reviews tab regardless of whether you have comments/reviews enabled on a per product basis, and globally disabling comments/reviews will make this tab disappear (on well designed themes). I personally dislike having a content tab that will never have any content in it, and disabling via CSS or in the template.php file is much less desirable than just turning off the feature globally.

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘How to completely disable Reviews Tab’ is closed to new replies.