WordPress doesn’t use externally hosted jQuery. In fact, as far as I’m aware, WordPress core does not register any externally hosted scripts.
WordPress bundles its own version of jQuery, and you can enqueue the bundled version by just enqueueing the handle jquery:
wp_enqueue_script( 'jquery' );
Or by specifying 'jquery' as a dependency:
wp_enqueue_script( 'my-script', '/path/to/my-script.js', [ 'jquery' ] );
If you enqueue jQuery like that, but it’s still loading an externally hosted version, then your theme or a plugin is either loading its own version separately, or has re-registered jquery with an external version. The easiest way to find the culprit is to deactivate plugins, checking your site after each one, to see if the correct version is loading.
Related Posts:
- Pass PHP variable to javascript
- force enqueue script to be first in order of prominence
- How can I make default jquery version of WordPress “async”?
- Handling jQuery Component Collision
- How to Add jQuery Infinite Scroll to My Custom Archive Page
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- Editor not displaying dynamically after clicking on the button
- WordPress Enqueue Script Chaos (jQuery & Foundation.js)
- Check javascript file Proper way in functions.php
- How to load plugin before the wordpress jquery?
- WordPress Plugin development Call to undefined function jQuery()
- Why is my ajax call refreshing the page?
- How to create popup same as wordpress popup feature
- Only execute jQuery function(on document ready) on the page has shortcode from plugin [duplicate]
- jQuery function didn’t work in my plugin
- WordPress 3.5 Media Manager – add a button
- Handling jQuery Component Collision
- How do I make sure a plugin loads a script after jQuery
- Add get_option to jquery
- Check if email address exists front end with AJAX in a plugin
- Confused about shortcode and settings values
- Running jquery script after shortcode [closed]
- JQuery not working in my plugin [closed]
- Notepad sticky plugin
- Bootstrap Drop Down menu is not working
- Error with Image Slide plug-in/ s3slider in WP
- Change upload folder for a CPT
- How to tie dark mode with prefers-color-scheme webkit? [closed]
- How to hide CSS by default and show on button press
- Uncaught TypeError: jQuery(…).flipster is not a function in wordpress
- Redux Framework: Page freezes on typing in Editor
- How can I inject options into an select tag inside the widget form?
- Display wordpress post’s in popup?
- Using color picker in plugin, does input attribute order matter?
- Restrict access to content in conjunction with facebook connect & google login
- Create shortcode to echo javascript
- how to insert data in wordpress table usnig jquery ajax
- Jquery NoConflict Problem
- this jQuery function works perfect in static html page but not on wordpress
- AJAX fileupload – TypeError: not a function ajaxSubmit()
- “Conflict” with jQuery (or its plugins)?
- How does one include the JQuery UI plugin to wordpress and enque it correctly in a plugin form?
- Remove Yoast jQuery from front end
- Adding media upload button to User Profile page (following a tutorial)
- Is there a function to list all uploaded images? How can I add one?
- How to remove js ui library added by default by wordpress
- Creating a widget and missing jQuery
- Plugin not working & permalink erorr after upgrade to php 7x on Nginx
- Opening a JQuery modal window on click of a button with a JQuery plugin
- Getting 400 Error: redirect_uri_mismatch when trying to grant permission to Gmail SMTP plugin
- Api external with wordpress
- How do I make sure that my plugin only runs on article detail pages?
- Why do I get jQuery reference error / undefined when changing name of plugin file?
- How to prevent tabs from opening all at once
- Why jquery option is not working when pass value using wp_localize_script?
- jQuery code didn’t run on my plugin
- “switchEditors is not defined” with wp_editor() in jQuery UI tabs
- Separate jQuery for Individual Comments?
- force jQuery to load in the head
- Ajax request sends url rather than data
- Error jQuery(domChunk).live is not a function
- Problems with jQuery and is_admin()
- sliding/fading header plugin or approach suggestion
- Cannot read properties of undefined (reading ‘firstChild’) using photoswipe in product page
- Trigger jQuery to add events after AJAX-loading table in admin plugin
- wc_get_template_part doesnt display the content [duplicate]
- How do I reinit WordPress plugins dynamically using jS?
- How to add height and width to images on a page(using WP Bakery) to improve Google’s CLS score?
- login form should redirect to register page for in 1st login next time it should redirected to home page
- Cannot pass value variable to WP AJAX functions
- How to properly enqueue jQuery knob on WordPress without conflict?
- $wpdb not working wordpress plugin ajax call
- main navigation menu disappear after adding jquery source file
- Scroll to ID broken in main menu
- Dynamic input fields in WordPress Plugin
- Overwrite js code using WP_Footer
- jquery plugin won’t fire when hamburger class element clicked
- Storing Array of values into wordpress options
- jQuery to show icon after .hide
- How to add styling and script to a custom widget plugin
- Add HTML between feed items
- WordPress Feedback popup with date saved into table
- Not getting result using ajax on wordpress
- WordPress ajax not working in registration
- AJAX doesn’t pass variables to the php function in the plugin
- how to call jQuery in admin as well as in homepage
- “The Events Calendar” Issues in WP 3.2
- How do I output user_registered time in my correct timezone?
- Ajax in Plugins: returns the whole page
- Google adsense stats plugin? [closed]
- Shortcode return is printing a 1 afterward
- WordPress site keeps getting flagged as malware [closed]
- FacetWP: Plugin breaks button/modal functionality inside searchable content area
- TypeErrors with Yoast, jQuery in conflict?
- Count div with class (.length) only shows 0 [closed]
- Jquery post responses 500 error after some time and lastly an 503 error
- Ajax button “Load more” is not loading correct language version posts for logged out users
- WordPress GiveWP Plugin showing blank page in none default theme [closed]
- Woocommerce attatch files and custom input meta to cart items and then to order
- Ajax response from Media Selection does not update ALL information more than once