Plugin_Upgrader_Skin::__construct()publicWP 2.8.0

Constructor.

Sets up the plugin upgrader skin.

Метод класса: Plugin_Upgrader_Skin{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$Plugin_Upgrader_Skin = new Plugin_Upgrader_Skin();
$Plugin_Upgrader_Skin->__construct( $args );
$args(массив)
The plugin upgrader skin arguments to override default options.
По умолчанию: empty array

Список изменений

С версии 2.8.0 Введена.

Код Plugin_Upgrader_Skin::__construct() WP 6.5.2

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

	$this->plugin = $args['plugin'];

	$this->plugin_active         = is_plugin_active( $this->plugin );
	$this->plugin_network_active = is_plugin_active_for_network( $this->plugin );

	parent::__construct( $args );
}