WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Notes

OrderMilestones::get_current_milestone() public WC 1.0

Calculate the current orders milestone.

Based on the threshold values in $this->milestones.

{} It's a method of the class: OrderMilestones{}

No Hooks.

Return

Int. Current orders milestone.

Usage

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

Code of OrderMilestones::get_current_milestone() WC 5.3.0

<?php
public function get_current_milestone() {
	$milestone_reached = 0;
	$orders_count      = $this->get_orders_count();

	foreach ( $this->milestones as $milestone ) {
		if ( $milestone <= $orders_count ) {
			$milestone_reached = $milestone;
		}
	}

	return $milestone_reached;
}