A
A
Anonimmus2021-09-06 21:12:33
WordPress
Anonimmus, 2021-09-06 21:12:33

How to disable this WP script, and where does it come from?

Good day.
Comrades tell me. where does this script come from? and how to turn it off??? I didn’t install any plugins, but it heavily loads the site loading.
6136582a4aaed152039792.png
613659df7fec8046807489.png
Function.php too

/* =====================CSS========================= --> */
function style_theme()
{
  // подключаем css стили 
  wp_enqueue_style('swiperBundle.min', get_template_directory_uri() . '/source/css/swiper-bundle.min.css');
  wp_enqueue_style('style', get_template_directory_uri() . '/source/css/style.css');
  wp_enqueue_style('restyle', get_template_directory_uri() . '/source/css/restyle.css');
}
function user_css()
{
  //Пользовательский css 
  wp_enqueue_style('style', get_template_directory_uri() . '/style.css');
}
add_action('wp_enqueue_scripts', 'user_css');

  add_theme_support('title-tag');
  add_theme_support('post-thumbnails');
  add_theme_support('woocommerce'); 

  remove_action('wp_head','wp_generator');
  remove_action('wp_head','wlwmanifest_link');
  remove_action('wp_head','rsd_link');
  remove_action('wp_head','rest_output_link_wp_head',10);
  remove_action('wp_head','wp_oembed_add_discovery_links');
  remove_action('wp_head','wp_shortlink_wp_head', 10, 0);
  remove_action('wp_head', 'feed_links_extra', 3);
  remove_action('welcome_panel', 'wp_welcome_panel');
  remove_action('admin_color_scheme_picker', 'admin_color_scheme_picker');
  add_filter( 'emoji_svg_url', '__return_false' );

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anonimmus, 2021-09-06
@Anonimmus

demolished function, header & footer but for some reason the view is pulled up ... it has nowhere to take it from.. explain.
Solution, connected the script as expected with array (), NUll, true
However, the question is open. Even if you demolish the plugins folder and the entire function.php header and footer, then you will see the formation of such a code

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question