WordPress at Your Fingertips
function is not described

WP_Upgrader::__construct() public WP 2.8.0

Construct the upgrader with a skin.

{} It's a method of the class: WP_Upgrader{}

No Hooks.

Return

null. Nothing.

Usage

$WP_Upgrader = new WP_Upgrader();
$WP_Upgrader->__construct( $skin );
$skin(WP_Upgrader_Skin)
The upgrader skin to use.
Default: WP_Upgrader_Skin instance

Changelog

Since 2.8.0 Introduced.

Code of WP_Upgrader::__construct() WP 5.8.2

public function __construct( $skin = null ) {
	if ( null === $skin ) {
		$this->skin = new WP_Upgrader_Skin();
	} else {
		$this->skin = $skin;
	}
}