Automattic\WooCommerce\Blueprint\Steps

InstallPlugin::__constructpublicWC 1.0

InstallPlugin constructor.

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

Хуков нет.

Возвращает

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

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

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

Код InstallPlugin::__construct() WC 10.0.2

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