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.


Top ↑

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

Top ↑

Changelog Changelog

Changelog
Version Description
3.7.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.