Skip to content
Advertisement

Tag: iframe

Add extra query string to src attribute’s value of an iframe element that has been generated or outputted by wp_oembed_get() function

I want to add an extra query string to the src attribute’s value of the iframe element. I want to achieve this by using PHP or WordPress and not by JavaScript. The thing is that I want to use Youtube iFrame API, which is only possible if the iframe has a query string in which enablejspai=1 src=”https://www.youtube.com/embed/M7lc1UVf-VE?enablejsapi=1″ Currently, the user

Advertisement