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.
Parameters
- $args
(array)(Optional) The WordPress upgrader skin arguments to override default options.
Default value: array()
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 );
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |