I've read about the WP enqueue_script() function, but if I wanted to use a newer version of jQuery than what my WP installation is using, can I load it through this & WP will use the latest version? or will it load both? or what will happen?
Thanks!
|
I've read about the WP enqueue_script() function, but if I wanted to use a newer version of jQuery than what my WP installation is using, can I load it through this & WP will use the latest version? or will it load both? or what will happen? Thanks! |
|||||
|
|
To replace the default jQuery url, do:
Then call Note that various pages in the WP admin might not be compatible with never versions of jQuery, not to mention plugin scripts. |
|||
|
|
|
You can (de)register the builtin jquery with the following functions:
And register a new jquery library:
|
|||||
|