WC_WCCOM_Site_Installer::get_state()public staticWC 3.7.0

Get the product install state.

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.

WC_WCCOM_Site_Installer::get_state() code WC 7.7.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;
}