{"id":2377,"date":"2024-01-04T19:36:00","date_gmt":"2024-01-04T19:36:00","guid":{"rendered":"https:\/\/www.tino-designs.com\/?p=2377"},"modified":"2024-04-04T19:40:20","modified_gmt":"2024-04-04T19:40:20","slug":"datenschutz-checkbox-fuer-wordpress-kommentare-und-woocommerce-reviews","status":"publish","type":"post","link":"https:\/\/www.tino-designs.com\/en\/datenschutz-checkbox-fuer-wordpress-kommentare-und-woocommerce-reviews\/","title":{"rendered":"Privacy Poliy Checkbox For Wordpress Comments And Woocommerce Reviews"},"content":{"rendered":"<p>In order to have a privacy policy compliant comment function on Wordpress in the EU, a number of things must be taken into account. Above all, the user's consent is required to process user data. Such an opt-in checkbox can be implemented with the following code in the functions.php file of the WP theme used:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ F&uuml;gt die Funktion dem Standard WP Kommentar sowie dem Woocommerce Review Formular hinzu\nfunction add_privacy_field_on_comment_form() {\n   $req  = get_option( 'require_name_email' );\n\t$aria_req = ( $req ? &quot; aria-required='true'&quot; : '' );\n        echo '&lt;div class=&quot;comment-form-datenschutz&quot;&gt;&lt;input id=&quot;datenschutz&quot; class=&quot;my-class&quot; name=&quot;datenschutz&quot; type=&quot;checkbox&quot;' . $aria_req \/&gt;' .\n\t'&lt;label class=&quot;my-class&quot; for=&quot;datenschutz&quot;&gt;' . __( 'Mit der Nutzung dieses Formulars erkl&auml;ren Sie sich mit der Speicherung und Verarbeitung Ihrer Daten durch diese Website einverstanden. Des weiteren geben Sie uns die Einwilligung zur Ver&ouml;ffentlichung Ihres Kommentars und akzeptieren unsere &lt;a target=&quot;_blank&quot; href=&quot;https:\/\/www.tino-designs.com\/en\/datenschutz\/&quot;&gt;Datenschutzerkl&auml;rung.&lt;\/a&gt;' ) . ( $req ? ' &lt;span class=&quot;required&quot;&gt;*&lt;\/span&gt;' : '' ) . '&lt;\/label&gt;&lt;\/div&gt;';\n    }\n    add_action( 'comment_form_logged_in_after', 'add_privacy_field_on_comment_form' );\n    add_action( 'comment_form_after_fields', 'add_privacy_field_on_comment_form' );\n\n\n\/\/Pr&uuml;ft ob die Checkbock f&uuml;r den Datenschutz ausgew&auml;hlt wurde \nadd_filter( 'preprocess_comment', 'webshaped_verify_comment_meta_data' );\nfunction webshaped_verify_comment_meta_data( $commentdata ) {\n\t\/\/ Wenn die Checkbox leer ist und ein Gastnutzer schreiben m&ouml;chte...\n\tif ( empty( $_POST['datenschutz'] ) ) {\n\t\t\/\/ ... zeige folgenden Fehlertext an\n\t\twp_die( __( '&lt;strong&gt;FEHLER&lt;\/strong&gt;: Die Datenschutzbox wurde nicht akzeptiert.&lt;br&gt;&lt;br&gt;&lt;a href=&quot;javascript:history.back()&quot;&gt;&laquo; Zur&uuml;ck&lt;\/a&gt;' ) );\n\t}\n\treturn $commentdata;\n}<\/code><\/pre>","protected":false},"excerpt":{"rendered":"<p>In order to have a privacy policy compliant comment function on Wordpress in the EU, a number of things must be taken into account...<\/p>","protected":false},"author":1,"featured_media":2331,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42,44,40,39],"tags":[],"class_list":["post-2377","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-code-snippets","category-datenschutz","category-php","category-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Datenschutz Checkbox f\u00fcr Wordpress Kommentare und Woocommerce Reviews - Tino-Designs.com<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.tino-designs.com\/en\/datenschutz-checkbox-fuer-wordpress-kommentare-und-woocommerce-reviews\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Datenschutz Checkbox f\u00fcr Wordpress Kommentare und Woocommerce Reviews - Tino-Designs.com\" \/>\n<meta property=\"og:description\" content=\"Um in der EU eine datenschutzkonforme Kommentarfunktion auf Wordpress zu bekommen muss einiges beachtet werden. Vor&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.tino-designs.com\/en\/datenschutz-checkbox-fuer-wordpress-kommentare-und-woocommerce-reviews\/\" \/>\n<meta property=\"og:site_name\" content=\"Tino-Designs.com\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-04T19:36:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-04T19:40:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.tino-designs.com\/wp-content\/uploads\/2023\/04\/wordpress-1863504.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1189\" \/>\n\t<meta property=\"og:image:height\" content=\"663\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Datenschutz Checkbox f\u00fcr Wordpress Kommentare und Woocommerce Reviews - Tino-Designs.com","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.tino-designs.com\/en\/datenschutz-checkbox-fuer-wordpress-kommentare-und-woocommerce-reviews\/","og_locale":"en_US","og_type":"article","og_title":"Datenschutz Checkbox f\u00fcr Wordpress Kommentare und Woocommerce Reviews - Tino-Designs.com","og_description":"Um in der EU eine datenschutzkonforme Kommentarfunktion auf Wordpress zu bekommen muss einiges beachtet werden. Vor&hellip;","og_url":"https:\/\/www.tino-designs.com\/en\/datenschutz-checkbox-fuer-wordpress-kommentare-und-woocommerce-reviews\/","og_site_name":"Tino-Designs.com","article_published_time":"2024-01-04T19:36:00+00:00","article_modified_time":"2024-04-04T19:40:20+00:00","og_image":[{"width":1189,"height":663,"url":"https:\/\/www.tino-designs.com\/wp-content\/uploads\/2023\/04\/wordpress-1863504.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tino-designs.com\/datenschutz-checkbox-fuer-wordpress-kommentare-und-woocommerce-reviews\/#article","isPartOf":{"@id":"https:\/\/www.tino-designs.com\/datenschutz-checkbox-fuer-wordpress-kommentare-und-woocommerce-reviews\/"},"author":{"name":"admin","@id":"https:\/\/www.tino-designs.com\/#\/schema\/person\/f92e74825458a5fc95900af07f37c0ee"},"headline":"Datenschutz Checkbox f\u00fcr Wordpress Kommentare und Woocommerce Reviews","datePublished":"2024-01-04T19:36:00+00:00","dateModified":"2024-04-04T19:40:20+00:00","mainEntityOfPage":{"@id":"https:\/\/www.tino-designs.com\/datenschutz-checkbox-fuer-wordpress-kommentare-und-woocommerce-reviews\/"},"wordCount":59,"commentCount":0,"publisher":{"@id":"https:\/\/www.tino-designs.com\/#organization"},"image":{"@id":"https:\/\/www.tino-designs.com\/datenschutz-checkbox-fuer-wordpress-kommentare-und-woocommerce-reviews\/#primaryimage"},"thumbnailUrl":"https:\/\/www.tino-designs.com\/wp-content\/uploads\/2023\/04\/wordpress-1863504.jpg","articleSection":["Code Snippets","Datenschutz","PHP","Wordpress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.tino-designs.com\/datenschutz-checkbox-fuer-wordpress-kommentare-und-woocommerce-reviews\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.tino-designs.com\/datenschutz-checkbox-fuer-wordpress-kommentare-und-woocommerce-reviews\/","url":"https:\/\/www.tino-designs.com\/datenschutz-checkbox-fuer-wordpress-kommentare-und-woocommerce-reviews\/","name":"Datenschutz Checkbox f\u00fcr Wordpress Kommentare und Woocommerce Reviews - Tino-Designs.com","isPartOf":{"@id":"https:\/\/www.tino-designs.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.tino-designs.com\/datenschutz-checkbox-fuer-wordpress-kommentare-und-woocommerce-reviews\/#primaryimage"},"image":{"@id":"https:\/\/www.tino-designs.com\/datenschutz-checkbox-fuer-wordpress-kommentare-und-woocommerce-reviews\/#primaryimage"},"thumbnailUrl":"https:\/\/www.tino-designs.com\/wp-content\/uploads\/2023\/04\/wordpress-1863504.jpg","datePublished":"2024-01-04T19:36:00+00:00","dateModified":"2024-04-04T19:40:20+00:00","breadcrumb":{"@id":"https:\/\/www.tino-designs.com\/datenschutz-checkbox-fuer-wordpress-kommentare-und-woocommerce-reviews\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.tino-designs.com\/datenschutz-checkbox-fuer-wordpress-kommentare-und-woocommerce-reviews\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.tino-designs.com\/datenschutz-checkbox-fuer-wordpress-kommentare-und-woocommerce-reviews\/#primaryimage","url":"https:\/\/www.tino-designs.com\/wp-content\/uploads\/2023\/04\/wordpress-1863504.jpg","contentUrl":"https:\/\/www.tino-designs.com\/wp-content\/uploads\/2023\/04\/wordpress-1863504.jpg","width":1189,"height":663},{"@type":"BreadcrumbList","@id":"https:\/\/www.tino-designs.com\/datenschutz-checkbox-fuer-wordpress-kommentare-und-woocommerce-reviews\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.tino-designs.com\/"},{"@type":"ListItem","position":2,"name":"Datenschutz Checkbox f\u00fcr WordPress Kommentare und Woocommerce Reviews"}]},{"@type":"WebSite","@id":"https:\/\/www.tino-designs.com\/#website","url":"https:\/\/www.tino-designs.com\/","name":"Tino-Designs.com","description":"Webdesign, Webentwicklung, Medien und Kreativit\u00e4t","publisher":{"@id":"https:\/\/www.tino-designs.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.tino-designs.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.tino-designs.com\/#organization","name":"Tino-Designs.com","url":"https:\/\/www.tino-designs.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.tino-designs.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.tino-designs.com\/wp-content\/uploads\/2021\/11\/logo_neu_2021_v5.png","contentUrl":"https:\/\/www.tino-designs.com\/wp-content\/uploads\/2021\/11\/logo_neu_2021_v5.png","width":698,"height":340,"caption":"Tino-Designs.com"},"image":{"@id":"https:\/\/www.tino-designs.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.tino-designs.com\/#\/schema\/person\/f92e74825458a5fc95900af07f37c0ee","name":"admin","url":"https:\/\/www.tino-designs.com\/en\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.tino-designs.com\/en\/wp-json\/wp\/v2\/posts\/2377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tino-designs.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tino-designs.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tino-designs.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tino-designs.com\/en\/wp-json\/wp\/v2\/comments?post=2377"}],"version-history":[{"count":5,"href":"https:\/\/www.tino-designs.com\/en\/wp-json\/wp\/v2\/posts\/2377\/revisions"}],"predecessor-version":[{"id":2385,"href":"https:\/\/www.tino-designs.com\/en\/wp-json\/wp\/v2\/posts\/2377\/revisions\/2385"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.tino-designs.com\/en\/wp-json\/wp\/v2\/media\/2331"}],"wp:attachment":[{"href":"https:\/\/www.tino-designs.com\/en\/wp-json\/wp\/v2\/media?parent=2377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tino-designs.com\/en\/wp-json\/wp\/v2\/categories?post=2377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tino-designs.com\/en\/wp-json\/wp\/v2\/tags?post=2377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}