Theme_Installer_Skin::__construct()

最后更新于:2021-11-26 04:12:36

Theme_Installer_Skin::__construct( array$args=array())

参数

$args

(array) (Optional)

Default value: array()

源文件

文件: gc-admin/includes/class-theme-installer-skin.php

	public function __construct( $args = array() ) {
		$defaults = array(
			'type'      => 'web',
			'url'       => '',
			'theme'     => '',
			'nonce'     => '',
			'title'     => '',
			'overwrite' => '',
		);
		$args     = gc_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 );
	}