oembed_result

Adding parameters to WordPress oEmbed

I was trying to enable the JavaScript API for an embedded youtube-player. It means that I somehow needed to add `&enablejsapi=1` to all youtube oEmbed url. When searching around I found a filter called `oembed_result`. Help from this article I found a solution I wanted. ` function my_plugin_enable_js_api( $html, $url, $args ) { /* Modify …