WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Notes

OrderMilestones::set_last_milestone() public WC 1.0

Update the last reached milestone.

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

No Hooks.

Return

null. Nothing.

Usage

$OrderMilestones = new OrderMilestones();
$OrderMilestones->set_last_milestone( $milestone );
$milestone(int) (required)
Last milestone reached.

Code of OrderMilestones::set_last_milestone() WC 5.3.0

<?php
public function set_last_milestone( $milestone ) {
	update_option( self::LAST_ORDER_MILESTONE_OPTION_KEY, $milestone );
}