Automattic\WooCommerce\Blueprint\Steps

ActivatePlugin::__constructpublicWC 1.0

ActivatePlugin constructor.

Method of the class: ActivatePlugin{}

No Hooks.

Returns

null. Nothing (null).

Usage

$ActivatePlugin = new ActivatePlugin();
$ActivatePlugin->__construct( $plugin_path, $plugin_name );
$plugin_path(string) (required)
Path to the plugin file relative to the plugins directory.
$plugin_name(string)
The name of the plugin to be activated.
Default: ''

ActivatePlugin::__construct() code WC 9.9.5

public function __construct( $plugin_path, $plugin_name = '' ) {
	$this->plugin_name = $plugin_name;
	$this->plugin_path = $plugin_path;
}