WC_WCCOM_Site_Installer::update_state()
Update the product install state.
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. |
WC_WCCOM_Site_Installer::update_state() WC WCCOM Site Installer::update state code WC 7.7.0
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 ); }