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() ) #


Parameters

$args

(array)(Optional)

Default value: array()


Top ↑

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

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.