WP_Upgrader::__construct()
Construct the upgrader with a skin.
Method of the class: WP_Upgrader{}
No Hooks.
Return
null
. Nothing (null).
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. |
WP_Upgrader::__construct() WP Upgrader:: construct code WP 6.8
public function __construct( $skin = null ) { if ( null === $skin ) { $this->skin = new WP_Upgrader_Skin(); } else { $this->skin = $skin; } }