Automattic\WooCommerce\Internal\StockNotifications\AsyncTasks
CycleStateService::get_raw_cycle_state
Get the raw cycle state.
Метод класса: CycleStateService{}
Хуков нет.
Возвращает
array.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_raw_cycle_state( $product_id ): array;
- $product_id(int) (обязательный)
- The product ID.
Код CycleStateService::get_raw_cycle_state() CycleStateService::get raw cycle state WC 11.2.2
private function get_raw_cycle_state( int $product_id ): array {
$cycle_state = get_option( $this->get_option_name( $product_id ), false );
if ( ! is_array( $cycle_state ) ) {
return array();
}
return $cycle_state;
}