• I’m trying to find out to override the checkbox on WooCommerce products in the advanced tab where you tick whether to enable Reviews or not on that product. I want it to force enable the reviews section on ALL products regardless of whether the tick box is checked or not.

    I have found scripts and plugins that will run through all the products and tick all the boxes. This isn’t what I’m looking for though.

    I thought there are two ways of doing it, either stop WooCommerce doing the check in the first place to see if the box is on or not. Or when it pulls all the product values set that review to true, I can’t find where to do either of these though.

    • This topic was modified 4 years, 8 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter SamAshford

    (@samashford)

    Or I was thinking of something like this but it’s not working…

    function return_custom_price($reviews_allowed, $product) {
    global $post, $blog_id;
    $product = wc_get_product( $post_id );
    $post_id = $post->ID;
    $reviews_allowed = true;
    return $reviews_allowed;
    }
    add_filter(‘woocommerce_get_price’, ‘return_custom_price’, 10, 2);

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Moved to Fixing WordPress, this is not an Everything else WordPress topic.

    Please ask plugin specific questions in that plugin’s dedicated sub-forum instead.

    https://www.ads-software.com/support/plugin/woocommerce/#new-post

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Woocommerce bypass Reviews Enabled’ is closed to new replies.