Title: Pass URL Parameters to Embedded iFrame
Author: Equalize Digital
Published: <strong>2019 年 2 月 15 日</strong>
Last modified: 2026 年 2 月 12 日

---

搜索插件

![](https://s.w.org/plugins/geopattern-icon/pass-url-parameters-to-embeded-iframe.
svg)

# Pass URL Parameters to Embedded iFrame

 作者：[Equalize Digital](https://profiles.wordpress.org/equalizedigital/)

[下载](https://downloads.wordpress.org/plugin/pass-url-parameters-to-embeded-iframe.1.1.0.zip)

 * [详情](https://cn.wordpress.org/plugins/pass-url-parameters-to-embeded-iframe/#description)
 * [评价](https://cn.wordpress.org/plugins/pass-url-parameters-to-embeded-iframe/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/pass-url-parameters-to-embeded-iframe/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/pass-url-parameters-to-embeded-iframe/#developers)

 [支持](https://wordpress.org/support/plugin/pass-url-parameters-to-embeded-iframe/)

## 描述

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.

## 安装

 1. Install via WordPress.org plugin directory (coming soon!)…or…
 2. Download zip file, unzip, and upload rwc-pass-parameters-to-iframe directory to
    the `/wp-content/plugins/` directory
 3. Activate the plugin through the ‘Plugins’ menu in WordPress
 4. Add id=”rwcGetParams” to any iframes you want to retrieve parameters from page 
    URL

## 常见问题

### How do I make an iframe source URL get the parameters from the page URL?

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.

### Will this work with multiple iframes on the same page?

No. Currently, this plugin will NOT support multiple iframes on the same page, unless
you want them all to load the same content.

### Will this work with many different iframes throughout the website?

Yes, this plugin will function with different iframes loading unique content, so
long as they are on different pages of your website.

### What if the iframe source URL already has parameters?

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.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Pass URL Parameters to Embedded iFrame」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Equalize Digital ](https://profiles.wordpress.org/equalizedigital/)
 *   [ Road Warrior Creative ](https://profiles.wordpress.org/roadwarriorwp/)
 *   [ Amber Hinds ](https://profiles.wordpress.org/alh0319/)
 *   [ Steve Jones ](https://profiles.wordpress.org/stevejonesdev/)

[帮助将「Pass URL Parameters to Embedded iFrame」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/pass-url-parameters-to-embeded-iframe)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/pass-url-parameters-to-embeded-iframe/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/pass-url-parameters-to-embeded-iframe/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/pass-url-parameters-to-embeded-iframe/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/pass-url-parameters-to-embeded-iframe/)。

## 更新日志

#### 1.1.0

 * Update function and constant prefixes for consistency
 * Fix deprecated jQuery .load() method
 * Improve code documentation with proper PHPDoc blocks
 * Load JavaScript in footer for better performance

#### 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!

## 额外信息

 *  版本 **1.1.0**
 *  最后更新：**9 月前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 6.7 或更高版本 **
 *  已测试的最高版本为 **6.9.11**
 *  语言
 * [English (US)](https://wordpress.org/plugins/pass-url-parameters-to-embeded-iframe/)
 * 标签
 * [eventbrite](https://cn.wordpress.org/plugins/tags/eventbrite/)[iframe](https://cn.wordpress.org/plugins/tags/iframe/)
   [parameters](https://cn.wordpress.org/plugins/tags/parameters/)
 *  [高级视图](https://cn.wordpress.org/plugins/pass-url-parameters-to-embeded-iframe/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/pass-url-parameters-to-embeded-iframe/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/pass-url-parameters-to-embeded-iframe/reviews/)

## 贡献者

 *   [ Equalize Digital ](https://profiles.wordpress.org/equalizedigital/)
 *   [ Road Warrior Creative ](https://profiles.wordpress.org/roadwarriorwp/)
 *   [ Amber Hinds ](https://profiles.wordpress.org/alh0319/)
 *   [ Steve Jones ](https://profiles.wordpress.org/stevejonesdev/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/pass-url-parameters-to-embeded-iframe/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://roadwarriorcreative.com/donate/)