Theme_Upgrader_Skin::__construct() WordPress Method

The Theme_Upgrader_Skin class is used to upgrade WordPress themes. It provides a simple interface for upgrading themes. The class can be used in a standalone manner or as a part of the Theme_Upgrader class.

Theme_Upgrader_Skin::__construct( array $args = array() ) #

Constructor.


Description

Sets up the theme upgrader skin.


Top ↑

Parameters

$args

(array)(Optional) The theme upgrader skin arguments to override default options.

Default value: array()


Top ↑

Source

File: wp-admin/includes/class-theme-upgrader-skin.php

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


Top ↑

Changelog

Changelog
VersionDescription
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.