iframe_footer example

$theme = themes_api( 'theme_information', array( 'slug' => wp_unslash( $_REQUEST['theme'] ) ) );

    if ( is_wp_error( $theme ) ) {
        wp_die( $theme );
    }

    iframe_header( __( 'Theme Installation' ) );
    if ( ! isset( $wp_list_table ) ) {
        $wp_list_table = _get_list_table( 'WP_Theme_Install_List_Table' );
    }
    $wp_list_table->theme_installer_single( $theme );
    iframe_footer();
    exit;
}
$plugins = array_map( 'urldecode', $plugins );

        $url   = 'update.php?action=update-selected&plugins=' . urlencode( implode( ',', $plugins ) );
        $nonce = 'bulk-update-plugins';

        wp_enqueue_script( 'updates' );
        iframe_header();

        $upgrader = new Plugin_Upgrader( new Bulk_Plugin_Upgrader_Skin( compact( 'nonce', 'url' ) ) );
        $upgrader->bulk_upgrade( $plugins );

        iframe_footer();

    } elseif ( 'upgrade-plugin' === $action ) {
        if ( ! current_user_can( 'update_plugins' ) ) {
            wp_die( __( 'Sorry, you are not allowed to update plugins for this site.' ) );
        }

        check_admin_referer( 'upgrade-plugin_' . $plugin );

        // Used in the HTML title tag.         $title        = __( 'Update Plugin' );
        $parent_file  = 'plugins.php';
        
case 'newer_installed':
                /* translators: %s: Plugin version. */
                echo '<a class="button button-primary right disabled">' . sprintf( __( 'Newer Version (%s) Installed' )esc_html( $status['version'] ) ) . '</a>';
                break;
            case 'latest_installed':
                echo '<a class="button button-primary right disabled">' . __( 'Latest Version Installed' ) . '</a>';
                break;
        }
    }
    echo "</div>\n";

    iframe_footer();
    exit;
}
Home | Imprint | This part of the site doesn't use cookies.