Pass URL Parameters to Embedded iFrame
Pass URL parameters from the embedded page URL to iframe source URL.
Plugin info
Maintenance & Compatibility
Maintenance score
Possibly abandoned • Last updated 1223 days ago
Is Pass URL Parameters to Embedded iFrame abandoned?
Possibly abandoned (last update 1223 days ago).
Compatibility
Languages
Similar & Alternatives
Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.
Description
This plugin will parse the web address on page load looking for parameters, and add those parameters to the source URL for any iframe with a specific ID.
Example use case: pass discount and affiliate codes via page URL to embedded Eventbrite tickets widgets.
Installation
- Install via WordPress.org plugin directory (coming soon!)…or…
- Download zip file, unzip, and upload rwc-pass-parameters-to-iframe directory to the
/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Add id=”rwcGetParams” to any iframes you want to retrive parameters from page URL
Frequently Asked Questions
In order for this plugin to pass the parameters to an iframe’s source URL, you have to add a specific id, rwcGetParams, to the iframe. For example
<iframe src="https://wordpress.org"></iframe>
should become
<iframe id="rwcGetParams" src="https://wordpress.org"></iframe>
Once you have added that id to the iframe, the plugin will automatically find any parameters in the URL and pass them on.
No. Currently, this plugin will NOT support multiple iframes on the same page, unless you want them all to load the same content.
Yes, this plugin will function with different iframes loading unique content, so long as they are on different pages of your website.
If your iframe source URL already has parameters we take that into account and don’t add another question mark. Everything will work as expected.
Review feed
Screenshots
Changelog
1.0.3
- Test with current WordPress version
1.0.2
- Added a check for defined parameters to prevent a value of undefined from being passed to the iframe.
1.0.1
- Added support for iFrame URLs that already contain parameters.
1.0
- Everything is shiny and new!