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

In this article

Constructor.

Description

Sets up the plugin installer skin.

Parameters

$argsarrayoptional

Default:array()

Source

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

Changelog

VersionDescription
2.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.