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