A WordPress-centric search engine for devs and theme authors



wp_iframe ›

Since2.5.0
Deprecatedn/a
wp_iframe ( $content_func )
Parameters:
  • (string|callable) $content_func
    Required: Yes
Defined at:
Codex:

Adds the iframe to display content for the media upload page



Source

function wp_iframe( $content_func /* ... */ ) {
	_wp_admin_html_begin();
?>
<title><?php bloginfo( 'name' ); ?> &rsaquo; <?php _e( 'Uploads' ); ?> &#8212; <?php _e( 'WordPress' ); ?></title>
<?php

wp_enqueue_style( 'colors' );
// Check callback name for 'media'
if ( ( is_array( $content_func ) && ! empty( $content_func[1] ) && 0 === strpos( (string) $content_func[1], 'media' ) )
	|| ( ! is_array( $content_func ) && 0 === strpos( $content_func, 'media' ) ) ) {
	wp_enqueue_style( 'deprecated-media' );
}