WordPress at Your Fingertips
function is not described

WC_WCCOM_Site_Installer::get_state() public WC 3.7.0

Get the product install state.

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

No Hooks.

Return

Array. Product install state.

Usage

$result = WC_WCCOM_Site_Installer::get_state( $key );
$key(string)
Key in state data. If empty key is passed array of state will be returned.
Default: ''

Changelog

Since 3.7.0 Introduced.

Code of WC_WCCOM_Site_Installer::get_state() WC 5.6.0

public static function get_state( $key = '' ) {
	$state = WC_Helper_Options::get( 'product_install', self::$default_state );
	if ( ! empty( $key ) ) {
		return isset( $state[ $key ] ) ? $state[ $key ] : null;
	}

	return $state;
}