Title: Theme_Installer_Skin::__construct
Published: April 25, 2014
Last modified: February 24, 2026

---

# Theme_Installer_Skin::__construct( array $args = array() )

## In this article

 * [Description](https://developer.wordpress.org/reference/classes/theme_installer_skin/__construct/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/classes/theme_installer_skin/__construct/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/classes/theme_installer_skin/__construct/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/theme_installer_skin/__construct/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/theme_installer_skin/__construct/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/theme_installer_skin/__construct/?output_format=md#wp--skip-link--target)

Constructor.

## 󠀁[Description](https://developer.wordpress.org/reference/classes/theme_installer_skin/__construct/?output_format=md#description)󠁿

Sets up the theme installer skin.

## 󠀁[Parameters](https://developer.wordpress.org/reference/classes/theme_installer_skin/__construct/?output_format=md#parameters)󠁿

 `$args`arrayoptional

Default:`array()`

## 󠀁[Source](https://developer.wordpress.org/reference/classes/theme_installer_skin/__construct/?output_format=md#source)󠁿

    ```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 );
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/class-theme-installer-skin.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-admin/includes/class-theme-installer-skin.php#L35)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/class-theme-installer-skin.php#L35-L52)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/theme_installer_skin/__construct/?output_format=md#related)󠁿

| Uses | Description | 
| [WP_Upgrader_Skin::__construct()](https://developer.wordpress.org/reference/classes/wp_upgrader_skin/__construct/)`wp-admin/includes/class-wp-upgrader-skin.php` |

Constructor.

  | 
| [wp_parse_args()](https://developer.wordpress.org/reference/functions/wp_parse_args/)`wp-includes/functions.php` |

Merges user defined arguments into defaults array.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/theme_installer_skin/__construct/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.8.0](https://developer.wordpress.org/reference/since/2.8.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Ftheme_installer_skin%2F__construct%2F)
before being able to contribute a note or feedback.