Automattic\WooCommerce\Internal\Admin\Notes
OrderMilestones::backfill_last_milestone
Backfill the store's current milestone.
Used to avoid celebrating milestones that were reached before plugin activation.
Method of the class: OrderMilestones{}
No Hooks.
Returns
null. Nothing (null).
Usage
$OrderMilestones = new OrderMilestones(); $OrderMilestones->backfill_last_milestone();
OrderMilestones::backfill_last_milestone() OrderMilestones::backfill last milestone code WC 10.3.3
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() );
}