WC_WCCOM_Site_Installer::get_state( string $key = '' )
Get the product install state.
Description Description
Parameters Parameters
- $key
-
(Optional) Key in state data. If empty key is passed array of state will be returned.
Default value: ''
Return Return
(array) Product install state.
Source Source
File: includes/wccom-site/class-wc-wccom-site-installer.php
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;
}
Changelog Changelog
| Version | Description |
|---|---|
| 3.7.0 | Introduced. |