Automattic\WooCommerce\Internal\Admin\Notes

WooSubscriptionsNotes::get_bump_thresholds()privateWC 1.0

We want to bubble up expiration notices when they cross certain age thresholds. PHP 5.2 doesn't support constant arrays, so we do this.

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

Хуков нет.

Возвращает

Массив.

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

// private - только в коде основоного (родительского) класса
$result = $this->get_bump_thresholds();

Код WooSubscriptionsNotes::get_bump_thresholds() WC 8.7.0

private function get_bump_thresholds() {
	return array( 60, 45, 20, 7, 1 ); // days.
}