How to disable comments on new blog post, but allow on new products?

silumantu

Member
Oct 9, 2019
169
23
18
Under the discussion setting, when I uncheck the “Allow people to submit comments on new posts” setting; it is disabling comments on new blog post. But it is also disabling review section of any new woocommerce product.

Is there any snippet so that only new blog post comments will be disabled & not the review of products. Also I know there is a plugin for this, but it will be better if I use a snippet instead of plugin.
 

Forum statistics

Threads
70,171
Messages
916,802
Members
246,800
Latest member
ali0105

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu