Display any iframe you like with this option, you can also specify the size of the iframe.

Option Details & Parameters

Type: iframe

Version: 1.9

Can be placed in: Admin Panels , Admin Tabs , Meta Boxes , Theme Customizer

Parameter Type Description
name string The name of the option, for display purposes only.
url string The URL to display in the iframe
height number The height in pixels of the iframe. Defaults to 400 pixels.


Display a YouTube video:

$panel->createOption( array(
    'type' => 'iframe',
    'url' => 'https://www.youtube.com/embed/A9JV0EvCkMI',
) );