WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Notes

OrderMilestones::backfill_last_milestone() public WC 1.0

Backfill the store's current milestone.

Used to avoid celebrating milestones that were reached before plugin activation.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of OrderMilestones::backfill_last_milestone() WC 5.3.0

<?php
public function backfill_last_milestone() {
	// If the milestone notes have been disabled via filter, bail.
	if ( ! $this->are_milestones_enabled() ) {
		return;
	}

	$this->set_last_milestone( $this->get_current_milestone() );
}