Theme_Installer_Skin::__construct
Constructor.
Sets up the theme installer skin.
Method of the class: Theme_Installer_Skin{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Theme_Installer_Skin = new Theme_Installer_Skin(); $Theme_Installer_Skin->__construct( $args );
- $args(array)
- .
Default:array()
Changelog
| Since 2.8.0 | Introduced. |
Theme_Installer_Skin::__construct() Theme Installer Skin:: construct code WP 6.9.1
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 );
}