title: Remove review stars if no reviews in WooCommerce shop and archives
body: <p>I want to not display the stars on products in the Shop page loop. My current code doesn't work...</p>
  
  <p>I'm working on a WooCommerce website with Astra.</p>
  
  <pre><code>function no_stars_if_no_reviews() {
      global $product;
      if ($average = $product-&gt;get_average_rating()) :
  if($average &gt; 0) {
  remove_filter(get_average_rating);
  }
  }
  </code></pre>
  
  <p>I just want to remove the filter when no reviews are there, but keep it otherwise. Once again, this is for the Products page, NOT single.</p>