WP_Upgrader_Skin::__construct() WordPress Method

The WP_Upgrader_Skin class is used to create a skin for the WordPress upgrader. It is used to display the upgrade process in the WordPress admin interface. The class provides a number of methods for configuring the skin, such as setting the header and footer text, and for displaying messages during the upgrade process.

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

Constructor.


Description

Sets up the generic skin for the WordPress Upgrader classes.


Top ↑

Parameters

$args

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

Default value: array()


Top ↑

Source

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

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


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.