WC_WCCOM_Site_Installer::get_state()
Get the product install state.
{} Это метод класса: WC_WCCOM_Site_Installer{}
Хуков нет.
Возвращает
Массив
. Product install state.
Использование
$result = WC_WCCOM_Site_Installer::get_state( $key );
- $key(строка)
- Key in state data. If empty key is passed array of state will be returned.
По умолчанию: ''
Список изменений
С версии 3.7.0 | Введена. |
Код WC_WCCOM_Site_Installer::get_state() WC WCCOM Site Installer::get state WC 6.5.1
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; }