How do you load js and style resources from CDN with local fallback using wp_enqueue_scripts?
Since 4.5 there is a function that lets you append inline js to an enqueued js file, it is called wp_add_inline_script. Now, this function does not let you add any js code that has a </script> in it for security reasons. But when you look at the wp_add_inline_script source code, you can see that it … Read more