How to Use the Javascript YouTube API Across Multiple Plugins
When using the YouTube API, you are required to create the function onYouTubePlayerAPIReady. There is a huge problem with this. If you have multiple WordPress plugins that use the YouTube API, that means that you have multiple declarations of onYouTubePlayerAPIReady.…