Skip to content

Instantly share code, notes, and snippets.

@muks999
Forked from artikus11/functions.php
Created October 9, 2018 12:57
Show Gist options
  • Save muks999/0c2e690871b96ad860acb9bd8a1d068d to your computer and use it in GitHub Desktop.
Save muks999/0c2e690871b96ad860acb9bd8a1d068d to your computer and use it in GitHub Desktop.
Добавление согласия на обработку данных в комментариях
add_filter( 'comment_form_after_fields', 'add_consent_personal_data_comment' );
function add_consent_personal_data_comment(){
?>
<small style="font-size: 12px;line-height: 1.1;margin: 10px 0;display: block;"> Нажимая на кнопку отправить, я принимаю условия <a href="#" target="_blank">пользовательского соглашения</a> , а также ознакомлен и согласен с <a href="#" target="_blank">политикой конфиденциальности</a> и даю согласие на обработку моих персональных данных</small>
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment