title: Open comments on a certain Post
body: <p>anyone know how can i open comments on a specific post in Wordpress? I tried <code>comments_open($id);</code> but it doesn't work.</p>
  
  <pre><code>&lt;?php
     comments_open( get_the_ID() );
  ?&gt;
  </code></pre>
  
  <p>Thanks a lot.</p>
  
  <p>EDIT: 
  i tried by specifieng it in functions.php, nothing changed.</p>
  
  <pre><code>add_filter( 'comments_open', 'feedbackOpen', 10, 2 );
  
  function feedbackOpen( $open, $post_id ) {
  
      $post = get_post( $post_id );
      if($post-&gt;post_type == 'product'){
          if (get_post_meta($post-&gt;ID, 'Allow Comments', true)) {$open = true;}
      }else{
          return false;
      }
  
      return $open;
  }
  </code></pre>