WP_Upgrader_Skin::__construct
Constructor.
Sets up the generic skin for the WordPress Upgrader classes.
Method of the class: WP_Upgrader_Skin{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WP_Upgrader_Skin = new WP_Upgrader_Skin(); $WP_Upgrader_Skin->__construct( $args );
- $args(array)
- The WordPress upgrader skin arguments to override default options.
Default: empty array
Changelog
| Since 2.8.0 | Introduced. |
WP_Upgrader_Skin::__construct() WP Upgrader Skin:: construct code WP 6.8.3
public function __construct( $args = array() ) {
$defaults = array(
'url' => '',
'nonce' => '',
'title' => '',
'context' => false,
);
$this->options = wp_parse_args( $args, $defaults );
}