Automattic\WooCommerce\Admin\Notes
WooSubscriptionsNotes::get_bump_thresholds() private WC 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() WooSubscriptionsNotes::get bump thresholds WC 5.0.0
private function get_bump_thresholds() {
return array( 60, 45, 20, 7, 1 ); // days.
}