Automattic\WooCommerce\Internal\Admin\Orders

ListTable::get_and_maybe_update_months_filter_cacheprotectedWC 1.0

Устарела с версии 9.9.0. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

Get order year-months cache. We cache the results in the options table, since these results will change very infrequently. We use the heuristic to always return current year-month when getting from cache to prevent an additional query.

Метод класса: ListTable{}

Хуков нет.

Возвращает

Массив. List of year-months.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_and_maybe_update_months_filter_cache(): array;

Список изменений

Устарела с 9.9.0

Код ListTable::get_and_maybe_update_months_filter_cache() WC 10.3.4

protected function get_and_maybe_update_months_filter_cache(): array {
	wc_deprecated_function(
		__METHOD__,
		'9.9.0',
		'get_months_filter_options'
	);

	return $this->get_months_filter_options();
}