WP_Upgrader::__construct() WordPress Method
The WP_Upgrader::__construct() method is used to initialize the WordPress upgrader. It sets up the WordPress upgrade environment and registers the WordPress upgrader with the WordPress Upgrade API.
WP_Upgrader::__construct( WP_Upgrader_Skin $skin = null ) #
Construct the upgrader with a skin.
Parameters
- $skin
(WP_Upgrader_Skin)(Optional)The upgrader skin to use. Default is a WP_Upgrader_Skin instance.
Default value: null
Source
File: wp-admin/includes/class-wp-upgrader.php
public function __construct( $skin = null ) {
if ( null === $skin ) {
$this->skin = new WP_Upgrader_Skin();
} else {
$this->skin = $skin;
}
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |