Plugin_Installer_Skin::__construct() WordPress Method
The Plugin_Installer_Skin::__construct() method is used to create a new plugin installer skin object. This object is used to display information about plugin installation progress and errors.
Plugin_Installer_Skin::__construct( array $args = array() ) #
Contents
Parameters
- $args
(array)(Optional)
Default value: array()
Source
File: wp-admin/includes/class-plugin-installer-skin.php
public function __construct( $args = array() ) {
$defaults = array(
'type' => 'web',
'url' => '',
'plugin' => '',
'nonce' => '',
'title' => '',
'overwrite' => '',
);
$args = wp_parse_args( $args, $defaults );
$this->type = $args['type'];
$this->url = $args['url'];
$this->api = isset( $args['api'] ) ? $args['api'] : array();
$this->overwrite = $args['overwrite'];
parent::__construct( $args );
}
Expand full source codeCollapse full source codeView on TracView on GitHub