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


Top ↑

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


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.