Automattic\WooCommerce\Blueprint\Steps

InstallPlugin::__constructpublicWC 1.0

InstallPlugin constructor.

Method of the class: InstallPlugin{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

InstallPlugin::__construct() code WC 9.9.5

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