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.
Return
null
. Nothing.
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 7.7.0
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; }