add cookies

This commit is contained in:
argoexpert press
2025-06-03 23:50:58 +03:00
parent 189b7822df
commit b2aa624866
10 changed files with 114 additions and 3 deletions

View File

@@ -1278,6 +1278,15 @@ function replace_first_figure_in_content($content) {
return $content;
}
function add_cookie_consent() {
if (!isset($_COOKIE['cookie_consent_accepted'])) {
get_template_part('cookie-consent');
}
}
add_action('wp_footer', 'add_cookie_consent');
/**
* убираем рубрики - Смена (7)
*/