Plugin_Installer_Skin::__constructpublicWP 2.8.0

Constructor.

Sets up the plugin installer skin.

Method of the class: Plugin_Installer_Skin{}

No Hooks.

Returns

null. Nothing (null).

Usage

$Plugin_Installer_Skin = new Plugin_Installer_Skin();
$Plugin_Installer_Skin->__construct( $args );
$args(array)
.
Default: array()

Changelog

Since 2.8.0 Introduced.

Plugin_Installer_Skin::__construct() code WP 7.0

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       = $args['api'] ?? array();
	$this->overwrite = $args['overwrite'];

	parent::__construct( $args );
}