Skip to main content
Agency Program Get 2× more leads and save 50% on hosting. Built for agencies ready to grow. Book a call
iframe icon

iframe

v5.2
by webvitaly · 4.4 (56 reviews)

[iframe src="http://www.youtube.com/embed/mOOClonYKmc" width="100%" height="500"] shortcode

80K+ active installs Updated Jan 31, 2025 Tested to 6.7.2
Try Demo Download
Pre-installed Ready in ~10s No card

About iframe

The "iframe" plugin allows you to embed content from YouTube, Vimeo, Google Maps, or any external page using a shortcode. It replaces the iframe html tag and accepts the same parameters. You can customize the width, height, scrolling, frameborder, and other settings of the embedded content.

Screenshots

iframe screenshot

Frequently asked questions

What is Advanced iFrame Pro?
Advanced iFrame Pro is a plugin for WordPress that allows you to embed content from external pages using iframe shortcode.
Where can I find the plugin page?
The plugin page for iframe can be found at http://web-profile.net/wordpress/plugins/iframe/.
How can I donate to support the development of the plugin?
You can donate to support the development of the plugin at http://web-profile.net/donate/.
Where can I find the GitHub repository for the plugin?
The GitHub repository for the plugin can be found at https://github.com/webvitalii/iframe.
What are the params for the iframe shortcode?
The params for the iframe shortcode include src, width, height, scrolling, frameborder, marginheight, marginwidth, allowtransparency, id, class, style, same_height_as, any_other_param, and any_other_empty_param.

Changelog

5.2

  • minor update

5.1

  • removed srcdoc attribute completely

5.0

  • fixed the $atts string/array error.

4.9

  • sanitized srcdoc attribute more.

4.8

  • sanitized srcdoc attribute.

4.7

  • remove all attributes starting with “on”. Examples: onload, onmouseover, onfocus, onpageshow, onclick.

4.6

  • removed onmouseover and onfocus attributes.

4.5

  • sanitize URL.

4.4

  • minor cleanup.

4.3

  • minor refactoring.

4.2

  • minor bugfixing.

4.1

  • removed onpageshow and onclick params. Reason: XSS vulnerability (thanks to dxw.com).

4.0

  • removed get_params_from_url param. Reason: XSS vulnerability (thanks to dxw.com).
    If you still need this feature you can [download iframe ver 3.0[(https://wordpress.org/plugins/iframe/developers/) and stick to it but keep in mind of XSS vulnerability.
  • removed onload param. Reason: XSS vulnerability (thanks to dxw.com).
  • escaping attributes

3.0

  • removed same_height_as=”content”, same_height_as=”window”, same_height_as=”document” features because it was not working properly
  • rewrote the javascript-code using pure JavaScript and without jQuery – no need to load jQuery for every site using iframe plugin
  • removed function_exists check because each function has unique prefix
  • code refactored
  • update docs
  • set height=”500″ instead of 480 by default
  • set scrolling=”yes” instead of “no” by default

2.9

  • remove ‘&’ from the end of the string in ‘get_params_from_url’ param

2.8

  • remove fix for google maps

2.7

  • minor changes

2.6

  • minor changes

2.5

  • added ‘get_params_from_url’ (thanks to Nathanael Majoros)

2.4

  • minor changes

2.3

  • small fixes
  • added (src=”http://www.youtube.com/embed/7_nAZQt9qu0″) by default

2.2

  • fixed bug (Notice: Undefined index: same_height_as)

2.1

  • added (frameborder=”0″) by default

2.0

  • plugin core rebuild (thanks to Gregg Tavares)
  • remove not setted params except the defaults
  • added support for all params, which user will set
  • added support for empty params (like “allowfullscreen” on youtube)

1.8

  • Added style parameter

1.7

  • Fixing minor bugs

1.6.0

  • Added auto-height feature (thanks to Willem Veelenturf)

1.5.0

  • Using native jQuery from include directory
  • Improved “same_height_as” parameter

1.4.0

  • Added “same_height_as” parameter

1.3.0

  • Added “id” and “class” parameters

1.2.0

  • Added “output=embed” fix to Google Map

1.1.0

  • Parameter allowtransparency added (thanks to Kent)

1.0.0

  • Initial release

Try other plugins