Plugin_Installer_Skin::__construct() WordPress Method

The Plugin_Installer_Skin::__construct() method is used to create a new plugin installer skin object. This object is used to display information about plugin installation progress and errors.

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


Parameters

$args

(array)(Optional)

Default value: array()


Top ↑

Source

File: wp-admin/includes/class-plugin-installer-skin.php

	public function __construct( $args = array() ) {
		$defaults = array(
			'type'      => 'web',
			'url'       => '',
			'plugin'    => '',
			'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.