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


Description Description


Parameters Parameters

$args

(array) (Optional)

Default value: array()


Top ↑

Source Source

File: wp-admin/includes/class-plugin-installer-skin.php

	public function __construct( $args = array() ) {
		$defaults = array(
			'type'   => 'web',
			'url'    => '',
			'plugin' => '',
			'nonce'  => '',
			'title'  => '',
		);
		$args     = wp_parse_args( $args, $defaults );

		$this->type = $args['type'];
		$this->api  = isset( $args['api'] ) ? $args['api'] : array();

		parent::__construct( $args );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.