Where is this JQuery coming from?

I’m confused with this command in my functions.php file:

function Remove_JQuery_Migrate( &$scripts) {
if(!is_admin()) {
$scripts->remove( ‘jquery’);
$scripts->add( ‘jquery’, false, array( ‘jquery-core’ ), ‘3.2.1’ );
add_filter( ‘wp_default_scripts’, ‘Remove_JQuery_Migrate’ );

I understand that this loads JQuery throughout my website – but here’s the odd thing, if I change the version of JQuery is does NOT update.

If I change the version of any other .css or .js file then that forces the update but the version of JQuery will not be updated.

I’ve repeatedly tried to clear the cache (I am using CloudFlare, maxCDN and W3TC) and no joy.

Does anyone have any idea of how I can problem solve here?

My client-facing problem is this, if you click on my website and select any event you’ll notice that the dropdown doesn’t work.


The developer console gives the error:

Uncaught TypeError: $ is not a function

That error I am sure is because JQuery is not being called correctly…

Any ideas of what I should do?

Read more here:: Where is this JQuery coming from?

Leave a Reply

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