{"id":525,"date":"2018-05-20T09:41:16","date_gmt":"2018-05-20T07:41:16","guid":{"rendered":"http:\/\/it-merge.com\/?p=525"},"modified":"2018-05-20T10:11:24","modified_gmt":"2018-05-20T08:11:24","slug":"wordpress-4-9-6-cookies-consent-remove","status":"publish","type":"post","link":"https:\/\/it-merge.com\/?p=525","title":{"rendered":"WordPress 4.9.6 cookies-consent remove"},"content":{"rendered":"<h1>Remove the cookie-consent<\/h1>\n<p>With\u00a0update 4.9.6 of WordPress commenting will require to set the name email and so on. In general I\u2019m not interested in knowing these date I removed the mandatory fields to collect these data.<\/p>\n<h2>Update of functions.php<\/h2>\n<p>Because I don\u2019t analyze data on access or who might be interested in my site I remove as much as possible the data which is usually collected by WordPress with the following code snippet<\/p>\n<pre>\/* Disable E-Mail-, URL- and Cookie-Consent-Field in Comments *\/\r\nfunction remove_comment_fields( $fields ) {\t\r\n\tunset( $fields['email'] );\r\n\tunset( $fields['url'] );\t\r\n\tunset( $fields['cookies'] );\t\t\r\n  \treturn $fields;\r\n}\r\nadd_filter( 'comment_form_default_fields', 'remove_comment_fields' );<\/pre>\n<p><a href=\"http:\/\/it-merge.com\/datenschutzerklarung\">Link to privacy policy notice <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Remove the cookie-consent With\u00a0update 4.9.6 of WordPress commenting will require to set the name email and so on. In general[&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[74,64],"tags":[73],"class_list":["post-525","post","type-post","status-publish","format-standard","hentry","category-dsgvo","category-wordpress","tag-dsgvo"],"_links":{"self":[{"href":"https:\/\/it-merge.com\/index.php?rest_route=\/wp\/v2\/posts\/525","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it-merge.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it-merge.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it-merge.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it-merge.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=525"}],"version-history":[{"count":10,"href":"https:\/\/it-merge.com\/index.php?rest_route=\/wp\/v2\/posts\/525\/revisions"}],"predecessor-version":[{"id":555,"href":"https:\/\/it-merge.com\/index.php?rest_route=\/wp\/v2\/posts\/525\/revisions\/555"}],"wp:attachment":[{"href":"https:\/\/it-merge.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it-merge.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it-merge.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}