Automattic\WooCommerce\Blueprint\Steps

InstallTheme::__constructpublicWC 1.0

InstallTheme constructor.

Method of the class: InstallTheme{}

No Hooks.

Returns

null. Nothing (null).

Usage

$InstallTheme = new InstallTheme();
$InstallTheme->__construct( $slug, $resource, $options );
$slug(string) (required)
The slug of the theme to be installed.
$resource(string) (required)
The resource URL or path to the theme's ZIP file.
$options(array)
Additional options for the theme installation.
Default: array()

InstallTheme::__construct() code WC 9.9.5

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