Task 7453 | удалил лишний код из multisite functions

pull/36/head
parent c6eac1d1d7
commit 692f1d6bf4
  1. 9
      wp-content/themes/cosmopet/global-functions/multisite-functions.php

@ -1,5 +1,4 @@
<?php <?php
/* Start | Работа с проверкой мультисайтовости и стендов */ /* Start | Работа с проверкой мультисайтовости и стендов */
global $site_env; global $site_env;
$site_env = new SiteEnvironment(); $site_env = new SiteEnvironment();
@ -74,11 +73,3 @@ add_action('wp_head', function() {
\Timber\Timber::render('templates/head-pixel-functions.twig', $context); \Timber\Timber::render('templates/head-pixel-functions.twig', $context);
} }
}); });
add_action('template_redirect', function() {
if (is_product()) {
header('Cache-Control: no-cache, no-store, must-revalidate');
header('Pragma: no-cache');
header('Expires: 0');
}
});
Loading…
Cancel
Save