WC_WCCOM_Site_Installation_Step_Activate_Product::run()publicWC 1.0

Run the step installation process.

Method of the class: WC_WCCOM_Site_Installation_Step_Activate_Product{}

No Hooks.

Return

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