Automattic\WooCommerce\Internal\Admin\Notes

OrderMilestones::get_last_milestone()publicWC 1.0

Get the store's last milestone.

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

Хуков нет.

Возвращает

int. Last milestone reached.

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

$OrderMilestones = new OrderMilestones();
$OrderMilestones->get_last_milestone();

Код OrderMilestones::get_last_milestone() WC 7.3.0

public function get_last_milestone() {
	return get_option( self::LAST_ORDER_MILESTONE_OPTION_KEY, 0 );
}