javascript - How to enqueue scripts in WordPress from CDN? - Stack Overflow

PHOTO EMBED

Tue Mar 15 2022 10:08:58 GMT+0000 (UTC)

Saved by @Prowhiz #javascript #wordpress

wp_register_script( 'jQuery', 'https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js', null, null, true );
wp_enqueue_script('jQuery');
content_copyCOPY

To enqueue script in wordpress

https://stackoverflow.com/questions/40403364/how-to-enqueue-scripts-in-wordpress-from-cdn