HOME / BLOG / BLOG-POST

Change WordPress Core jQuery version to older or according to your need.

/**
* Change jQuery version to older by wpdevkit.in
*/
function replace_core_jquery_version() {
    wp_deregister_script( 'jquery' );
    // Change the URL if you want to load a local copy of jQuery from your own server.
    wp_register_script( 'jquery', "https://code.jquery.com/jquery-3.0.0.min.js");
}
add_action( 'admin_enqueue_scripts', 'replace_core_jquery_version' );

 


about authors

Sandip Das

Web Developer

Once a legend said “Any fool can write code that a computer can understand. Good programmers write code that humans can understand.” – Martin Fowler.



POST COMMENTS

Leave a Reply

Your email address will not be published. Required fields are marked *