Automattic\WooCommerce\Blueprint\Steps
ActivatePlugin::__construct
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() ActivatePlugin:: construct code WC 9.9.5
public function __construct( $plugin_path, $plugin_name = '' ) { $this->plugin_name = $plugin_name; $this->plugin_path = $plugin_path; }