Uses
Uses | Description |
---|---|
wp-admin/includes/class-wp-upgrader-skin.php: WP_Upgrader_Skin::__construct() | Constructor. |
wp-includes/functions.php: wp_parse_args() | Merge user defined arguments into defaults array. |
(array) (Optional)
Default value: array()
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 ); }
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/plugin_installer_skin/__construct