This question already has an answer here:
For a custom post type I have enabled support for comments via php and CPT.
'supports' => array( 'title', 'editor', 'revisions', 'comments', )
But each post still has its "Allow comments" box in the discussion-field unchecked. I am now looking for a way to automatically check this box, as I have quite a big number posts of this custom post type and do not think, this can only be done manually.
However, I have other custom post types where I still want comments to be disabled. So I am looking for a way, to check all "enable comments" for one specific post type.