Theme_Upgrader_Skin::__construct()publicWP 2.8.0

Constructor.

Sets up the theme upgrader skin.

Method of the class: Theme_Upgrader_Skin{}

No Hooks.

Return

null. Nothing (null).

Usage

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

Changelog

Since 2.8.0 Introduced.

Theme_Upgrader_Skin::__construct() code WP 6.4.3

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

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

	parent::__construct( $args );
}