Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

WC_WCCOM_Site_Installer::install_product( int $product_id, array $install_args, WP_Upgrader $upgrader )

Install a single product given its ID.


Description Description


Parameters Parameters

$product_id

(Required) Product ID.

$install_args

(Required) Install args.

$upgrader

(Required) Core class to handle installation.


Top ↑

Source Source

File: includes/wccom-site/class-wc-wccom-site-installer.php

	private static function install_product( $product_id, $install_args, $upgrader ) {
		foreach ( self::$install_steps as $step ) {
			self::do_install_step( $product_id, $install_args, $step, $upgrader );
		}
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.7.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.