Theme_Installer_Skin::__construct() WordPress Method
The Theme_Installer_Skin class is used to set up the WordPress Theme InstallerSkin class. It is used to manage the display and functionality of the WordPress Theme Installer.
Theme_Installer_Skin::__construct( array $args = array() ) #
Contents
Parameters
- $args
(array)(Optional)
Default value: array()
Source
File: wp-admin/includes/class-theme-installer-skin.php
public function __construct( $args = array() ) {
$defaults = array(
'type' => 'web',
'url' => '',
'theme' => '',
'nonce' => '',
'title' => '',
'overwrite' => '',
);
$args = wp_parse_args( $args, $defaults );
$this->type = $args['type'];
$this->url = $args['url'];
$this->api = isset( $args['api'] ) ? $args['api'] : array();
$this->overwrite = $args['overwrite'];
parent::__construct( $args );
}
Expand full source codeCollapse full source codeView on TracView on GitHub