WP_Upgrader_Skin::__construct()publicWP 2.8.0

Constructor.

Sets up the generic skin for the WordPress Upgrader classes.

Method of the class: WP_Upgrader_Skin{}

No Hooks.

Return

null. Nothing (null).

Usage

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

Changelog

Since 2.8.0 Introduced.

WP_Upgrader_Skin::__construct() code WP 6.5.2

public function __construct( $args = array() ) {
	$defaults      = array(
		'url'     => '',
		'nonce'   => '',
		'title'   => '',
		'context' => false,
	);
	$this->options = wp_parse_args( $args, $defaults );
}