Automattic\WooCommerce\Internal\Admin\Notes

OrderMilestones::get_last_milestone()publicWC 1.0

Get the store's last milestone.

Method of the class: OrderMilestones{}

No Hooks.

Return

Int. Last milestone reached.

Usage

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

OrderMilestones::get_last_milestone() code WC 7.1.1

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