WC_WCCOM_Site_Installer::update_state( string $key, mixed $value )
Update the product install state.
Description Description
Parameters Parameters
- $key
-
(Required) Key in state data.
- $value
-
(Required) Value.
Source Source
File: includes/wccom-site/class-wc-wccom-site-installer.php
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 ); }
Changelog Changelog
Version | Description |
---|---|
3.7.0 | Introduced. |