WordPress at Your Fingertips
function is not described

Plugin_Upgrader_Skin::__construct() public WP 2.8.0

Constructor.

Sets up the plugin upgrader skin.

{} It's a method of the class: Plugin_Upgrader_Skin{}

No Hooks.

Return

null. Nothing.

Usage

$Plugin_Upgrader_Skin = new Plugin_Upgrader_Skin();
$Plugin_Upgrader_Skin->__construct( $args );
$args(array)
The plugin upgrader skin arguments to override default options.
Default: empty array

Changelog

Since 2.8.0 Introduced.

Code of Plugin_Upgrader_Skin::__construct() WP 5.8.2

public function __construct( $args = array() ) {
	$defaults = array(
		'url'    => '',
		'plugin' => '',
		'nonce'  => '',
		'title'  => __( 'Update Plugin' ),
	);
	$args     = wp_parse_args( $args, $defaults );

	$this->plugin = $args['plugin'];

	$this->plugin_active         = is_plugin_active( $this->plugin );
	$this->plugin_network_active = is_plugin_active_for_network( $this->plugin );

	parent::__construct( $args );
}