{"id":10319443,"date":"2018-05-24T16:58:07","date_gmt":"2018-05-24T16:58:07","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/disable-comments-39\/"},"modified":"2018-05-24T16:58:07","modified_gmt":"2018-05-24T16:58:07","slug":"disable-comments-39","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/disable-comments-39\/","title":{"rendered":"Disable Comments"},"content":{"rendered":"<p>I would like to prevent the comment form from showing as long as the user hasnt accepted cookies. I modified my theme like this:<\/p>\n<pre><code>if ( function_exists(&#039;cookie_accepted&#039;) &amp;&amp; cookie_accepted() ) {\ncomment_form();\n}<\/code><\/pre>\n<p>But that change will be gone as soon as the theme updates. Maybe a more permanent solution can be built into the plugin?<\/p>\n","protected":false},"template":"","class_list":["post-10319443","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10319443","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10319443\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10319443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}