WordPress at a glance
function is not described

WC_WCCOM_Site_Installer::reset_state() public WC 3.7.0

Reset product install state.

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

No Hooks.

Return

null. Nothing.

Usage

$result = WC_WCCOM_Site_Installer::reset_state( $products );
$products(array)
List of product IDs.

Changelog

Since 3.7.0 Introduced.

Code of WC_WCCOM_Site_Installer::reset_state() WC 5.4.1

<?php
public static function reset_state( $products = array() ) {
	WC()->queue()->cancel_all( 'woocommerce_wccom_install_products' );
	WC_Helper_Options::update( 'product_install', self::$default_state );
}