WC_WCCOM_Site_Installation_Step_Activate_Product::runpublicWC 1.0

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() code WC 9.9.4

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;
}