From a329bdd796c36990b8174d10fcbcaa258bc5c9e6 Mon Sep 17 00:00:00 2001 From: AK Delfin Date: Sat, 12 Mar 2022 16:30:23 +0300 Subject: [PATCH] delete fb pixel --- functions.php | 11 +++++++++++ header.php | 10 +++------- index.php | 1 + 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/functions.php b/functions.php index e60913d..ae7d320 100644 --- a/functions.php +++ b/functions.php @@ -12,6 +12,17 @@ define('BASE_VIJ', ABSPATH.'wp-content/themes/vij/'); require ABSPATH.'/vendor/autoload.php'; +#отключаем автообновления +add_filter('pre_site_transient_update_core',create_function('$a', "return null;")); +wp_clear_scheduled_hook('wp_version_check'); + +remove_action( 'load-update-core.php', 'wp_update_plugins' ); +add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) ); +wp_clear_scheduled_hook( 'wp_update_plugins' ); + + + + require get_template_directory().'/src/calend-block.php'; require get_template_directory().'/src/calendar.php'; diff --git a/header.php b/header.php index e7ca438..74ae116 100644 --- a/header.php +++ b/header.php @@ -11,7 +11,8 @@ - + + @@ -38,12 +39,7 @@ - - - +