Automattic\WooCommerce\Blueprint\Steps

ActivatePlugin::__constructpublicWC 1.0

ActivatePlugin constructor.

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

Хуков нет.

Возвращает

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

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

$ActivatePlugin = new ActivatePlugin();
$ActivatePlugin->__construct( $plugin_path, $plugin_name );
$plugin_path(строка) (обязательный)
Path to the plugin file relative to the plugins directory.
$plugin_name(строка)
The name of the plugin to be activated.
По умолчанию: ''

Код ActivatePlugin::__construct() WC 10.0.2

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