Created
April 22, 2023 18:30
-
-
Save edveraxo/ecfc18ea3e525850006ae7f6ad1f11c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- Добавить в functions.php темы | |
function cg_revert_jquery_version_admin() { | |
wp_deregister_script( 'jquery' ); | |
wp_register_script( 'jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js'); | |
wp_enqueue_script( 'jquery' ); | |
} | |
add_action( 'admin_enqueue_scripts', 'cg_revert_jquery_version_admin' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment