WordPress at Your Fingertips
function is not described

WC_WCCOM_Site_Installer::install_product() private WC 3.7.0

Install a single product given its ID.

{} It's a method of the class: WC_WCCOM_Site_Installer{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_WCCOM_Site_Installer::install_product( $product_id, $install_args, $upgrader );
$product_id(int) (required)
Product ID.
$install_args(array) (required)
Install args.
$upgrader(\WP_Upgrader) (required)
Core class to handle installation.

Changelog

Since 3.7.0 Introduced.

Code of WC_WCCOM_Site_Installer::install_product() WC 5.7.0

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