Automattic\WooCommerce\Blueprint\Steps
InstallPlugin::__construct
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() InstallPlugin:: construct WC 10.8.1
public function __construct( $slug, $resource, array $options = array() ) {
$this->slug = $slug;
$this->resource = $resource;
$this->options = $options;
}