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