From 0b290a02e7697d5e9ef145dd7d641229396c942b Mon Sep 17 00:00:00 2001 From: maksim Date: Tue, 24 Jun 2025 16:56:40 +0300 Subject: [PATCH] =?UTF-8?q?task=206953=20|=20=D1=83=D0=B4=D0=B0=D0=BB?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=B2=D1=81=D0=B5=20=D1=83=D0=BF=D0=BE=D0=BC?= =?UTF-8?q?=D0=B8=D0=BD=D0=B0=D0=BD=D0=B8=D1=8F=20=D1=81=D1=82=D0=B0=D1=80?= =?UTF-8?q?=D0=BE=D0=B9=20=D0=BB=D0=BE=D0=B3=D0=B8=D0=BA=D0=B8=20=D1=81=20?= =?UTF-8?q?SITE=5FDOMAIN?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../global-functions/multisite-functions.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/wp-content/themes/cosmopet/global-functions/multisite-functions.php b/wp-content/themes/cosmopet/global-functions/multisite-functions.php index 7aaa7d3..3aba101 100644 --- a/wp-content/themes/cosmopet/global-functions/multisite-functions.php +++ b/wp-content/themes/cosmopet/global-functions/multisite-functions.php @@ -41,8 +41,6 @@ add_filter('timber/twig', function (\Twig\Environment $twig) { - - add_filter('woocommerce_currency_symbol', 'change_aed_currency_symbol', 10, 2); function change_aed_currency_symbol($currency_symbol, $currency) { @@ -52,16 +50,6 @@ function change_aed_currency_symbol($currency_symbol, $currency) { return $currency_symbol; } -add_filter('timber/context', function($context) { - // Передаем все нужные константы в контекст Twig - $context['CONSTANTS'] = [ - 'DOMAIN' => defined('SITE_DOMAIN') ? SITE_DOMAIN : null, - ]; - - return $context; -}); - - // Отключаем канонические ссылки и hreflang от Yoast SEO add_filter('wpseo_canonical', '__return_false'); add_filter('wpseo_opengraph_url', '__return_false'); // Отключаем OG URL