Automattic\WooCommerce\Internal\Admin\Notes

OrderMilestones::set_last_milestone()publicWC 1.0

Update the last reached milestone.

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.

OrderMilestones::set_last_milestone() code WC 7.1.0

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