Theme_Upgrader_Skin::__construct
Constructor.
Sets up the theme upgrader skin.
Method of the class: Theme_Upgrader_Skin{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Theme_Upgrader_Skin = new Theme_Upgrader_Skin(); $Theme_Upgrader_Skin->__construct( $args );
- $args(array)
- The theme upgrader skin arguments to override default options.
Default:empty array
Changelog
| Since 2.8.0 | Introduced. |
Theme_Upgrader_Skin::__construct() Theme Upgrader Skin:: construct code WP 6.9.1
public function __construct( $args = array() ) {
$defaults = array(
'url' => '',
'theme' => '',
'nonce' => '',
'title' => __( 'Update Theme' ),
);
$args = wp_parse_args( $args, $defaults );
$this->theme = $args['theme'];
parent::__construct( $args );
}