Skip to content

Instantly share code, notes, and snippets.

@muks999
Created February 4, 2019 10:37
Show Gist options
  • Save muks999/edee27a109fd74368ba21d30b7999c6e to your computer and use it in GitHub Desktop.
Save muks999/edee27a109fd74368ba21d30b7999c6e to your computer and use it in GitHub Desktop.
Отключаем сообщение «JQMIGRATE: Migrate is installed, version 1.4.1»
add_action('wp_default_scripts', function ($scripts) {
if (!empty($scripts->registered['jquery'])) {
$scripts->registered['jquery']->deps = array_diff($scripts->registered['jquery']->deps, ['jquery-migrate']);
}
});
@muks999
Copy link
Author

muks999 commented Feb 4, 2019

простой сниппет, который можно добавить в functions.php нашей темы

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment