WC_WCCOM_Site_Installation_Step_Activate_Product::run
Run the step installation process.
Method of the class: WC_WCCOM_Site_Installation_Step_Activate_Product{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_WCCOM_Site_Installation_Step_Activate_Product = new WC_WCCOM_Site_Installation_Step_Activate_Product(); $WC_WCCOM_Site_Installation_Step_Activate_Product->run();
WC_WCCOM_Site_Installation_Step_Activate_Product::run() WC WCCOM Site Installation Step Activate Product::run code WC 10.6.2
public function run() {
$product_id = $this->state->get_product_id();
if ( 'plugin' === $this->state->get_product_type() ) {
$this->activate_plugin( $product_id );
} else {
$this->activate_theme( $product_id );
}
return $this->state;
}