WordPress at Your Fingertips
function is not described

WC_WCCOM_Site_Installer::update_state() public WC 3.7.0

Update the 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::update_state( $key, $value );
$key(string) (required)
Key in state data.
$value(mixed) (required)
Value.

Changelog

Since 3.7.0 Introduced.

Code of WC_WCCOM_Site_Installer::update_state() WC 6.1.1

public static function update_state( $key, $value ) {
	$state = WC_Helper_Options::get( 'product_install', self::$default_state );

	$state[ $key ] = $value;
	WC_Helper_Options::update( 'product_install', $state );
}