Skip to content
Advertisement

Tag: wordpress

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

How to change which choice in a Gravity Forms radio button field is selected using PHP as part of a gform_pre_submission

My PHP skills are not good but I learn by code example because I am not familiar with the syntax, but in this case I can not find a code example that works. I want to set a Product Option Radio Button Field’s selected value during a gform_pre_submission add_action based on another field’s value. I’ve tried something like this (there

Advertisement