WP_Upgrader_Skin::__construct()publicWP 2.8.0

Constructor.

Sets up the generic skin for the WordPress Upgrader classes.

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

Хуков нет.

Возвращает

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

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

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

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

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

Код WP_Upgrader_Skin::__construct() WP 6.4.3

public function __construct( $args = array() ) {
	$defaults      = array(
		'url'     => '',
		'nonce'   => '',
		'title'   => '',
		'context' => false,
	);
	$this->options = wp_parse_args( $args, $defaults );
}