Automattic\WooCommerce\Blueprint\Steps

InstallTheme::__constructpublicWC 1.0

InstallTheme constructor.

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

Хуков нет.

Возвращает

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

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

$InstallTheme = new InstallTheme();
$InstallTheme->__construct( $slug, $resource, $options );
$slug(строка) (обязательный)
The slug of the theme to be installed.
$resource(строка) (обязательный)
The resource URL or path to the theme's ZIP file.
$options(массив)
Additional options for the theme installation.
По умолчанию: array()

Код InstallTheme::__construct() WC 10.0.2

public function __construct( $slug, $resource, array $options = array() ) {
	$this->slug     = $slug;
	$this->resource = $resource;
	$this->options  = $options;
}