{"id":97271,"date":"2019-02-15T20:16:39","date_gmt":"2019-02-15T20:16:39","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/pass-url-parameters-to-embeded-iframe\/"},"modified":"2026-02-12T20:06:03","modified_gmt":"2026-02-12T20:06:03","slug":"pass-url-parameters-to-embeded-iframe","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/pass-url-parameters-to-embeded-iframe\/","author":18371228,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1.0","stable_tag":"1.1.0","tested":"6.9.4","requires":"6.7","requires_php":"","requires_plugins":null,"header_name":"Pass URL Parameters to Embedded iFrame","header_author":"Equalize Digital","header_description":"Allows parameters to pass from the embeded page URL to iframe source URL","assets_banners_color":"","last_updated":"2026-02-12 20:06:03","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/roadwarriorcreative.com\/donate\/","header_plugin_uri":"","header_author_uri":"https:\/\/equalizedigital.com","rating":0,"author_block_rating":0,"active_installs":200,"downloads":3399,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.1.0":{"tag":"1.1.0","author":"stevejonesdev","date":"2026-02-12 20:06:03"}},"upgrade_notice":[],"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1.0"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[18887,1860,10257],"plugin_category":[],"plugin_contributors":[146868,193850,88050,146869],"plugin_business_model":[],"class_list":["post-97271","plugin","type-plugin","status-publish","hentry","plugin_tags-eventbrite","plugin_tags-iframe","plugin_tags-parameters","plugin_contributors-alh0319","plugin_contributors-equalizedigital","plugin_contributors-roadwarriorwp","plugin_contributors-stevejonesdev","plugin_committers-alh0319","plugin_committers-equalizedigital","plugin_committers-stevejonesdev"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/pass-url-parameters-to-embeded-iframe.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n\n<p>Example use case: pass discount and affiliate codes via page URL to embedded Eventbrite tickets widgets.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install via WordPress.org plugin directory (coming soon!)...or...<\/li>\n<li>Download zip file, unzip, and upload rwc-pass-parameters-to-iframe directory to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Add id=\"rwcGetParams\" to any iframes you want to retrieve parameters from page URL<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"how%20do%20i%20make%20an%20iframe%20source%20url%20get%20the%20parameters%20from%20the%20page%20url%3F\"><h3>How do I make an iframe source URL get the parameters from the page URL?<\/h3><\/dt>\n<dd><p>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<\/p>\n\n<pre><code>&lt;iframe src=\"https:\/\/wordpress.org\"&gt;&lt;\/iframe&gt;\n<\/code><\/pre>\n\n<p>should become<\/p>\n\n<pre><code>&lt;iframe id=\"rwcGetParams\" src=\"https:\/\/wordpress.org\"&gt;&lt;\/iframe&gt;\n<\/code><\/pre>\n\n<p>Once you have added that id to the iframe, the plugin will automatically find any parameters in the URL and pass them on.<\/p><\/dd>\n<dt id=\"will%20this%20work%20with%20multiple%20iframes%20on%20the%20same%20page%3F\"><h3>Will this work with multiple iframes on the same page?<\/h3><\/dt>\n<dd><p>No. Currently, this plugin will NOT support multiple iframes on the same page, unless you want them all to load the same content.<\/p><\/dd>\n<dt id=\"will%20this%20work%20with%20many%20different%20iframes%20throughout%20the%20website%3F\"><h3>Will this work with many different iframes throughout the website?<\/h3><\/dt>\n<dd><p>Yes, this plugin will function with different iframes loading unique content, so long as they are on different pages of your website.<\/p><\/dd>\n<dt id=\"what%20if%20the%20iframe%20source%20url%20already%20has%20parameters%3F\"><h3>What if the iframe source URL already has parameters?<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Update function and constant prefixes for consistency<\/li>\n<li>Fix deprecated jQuery .load() method<\/li>\n<li>Improve code documentation with proper PHPDoc blocks<\/li>\n<li>Load JavaScript in footer for better performance<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Test with current WordPress version<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Added a check for defined parameters to prevent a value of undefined from being passed to the iframe.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Added support for iFrame URLs that already contain parameters.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Everything is shiny and new!<\/li>\n<\/ul>","raw_excerpt":"Pass URL parameters from the embedded page URL to iframe source URL.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/97271","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=97271"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/equalizedigital"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=97271"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=97271"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=97271"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=97271"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=97271"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=97271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}