Automattic\WooCommerce\Internal\Admin\Notes
WooSubscriptionsNotes::get_bump_thresholds()
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.
Method of the class: WooSubscriptionsNotes{}
No Hooks.
Return
Array
.
Usage
// private - for code of main (parent) class only $result = $this->get_bump_thresholds();
WooSubscriptionsNotes::get_bump_thresholds() WooSubscriptionsNotes::get bump thresholds code WC 8.7.0
private function get_bump_thresholds() { return array( 60, 45, 20, 7, 1 ); // days. }