이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

Pass URL Parameters to Embedded 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 retrive parameters from page URL

FAQ

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 paramters?

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”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Pass URL Parameters to Embedded iFrame”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

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!