Automattic\WooCommerce\Internal\EmailEditor\WCTransactionalEmails

WCEmailTemplateSyncBackfill::finalizeprivate staticWC 1.0

Flip the backfill-complete option and fire the completion action.

Order matters: the option is updated first so any listener that inspects it inside the action sees the final state.

Method of the class: WCEmailTemplateSyncBackfill{}

Hooks from the method

Returns

null. Nothing (null).

Usage

$result = WCEmailTemplateSyncBackfill::finalize(): void;

WCEmailTemplateSyncBackfill::finalize() code WC 10.8.1

private static function finalize(): void {
	update_option( WCEmailTemplateDivergenceDetector::BACKFILL_COMPLETE_OPTION, 'yes' );

	/**
	 * Fires once, immediately after the RSM-149 sync-meta backfill
	 * finalizes for this site.
	 *
	 * Hooked by {@see WCEmailTemplateDivergenceDetector::run_sweep()} so the
	 * first real divergence sweep runs with a fully-stamped post set.
	 *
	 * @since 10.8.0
	 */
	do_action( self::BACKFILL_COMPLETE_ACTION );
}