Automattic\WooCommerce\Internal\EmailEditor\WCTransactionalEmails
WCEmailTemplateSyncBackfill::finalize
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.
Метод класса: WCEmailTemplateSyncBackfill{}
Хуки из метода
Возвращает
null. Ничего (null).
Использование
$result = WCEmailTemplateSyncBackfill::finalize(): void;
Код WCEmailTemplateSyncBackfill::finalize() WCEmailTemplateSyncBackfill::finalize WC 10.9.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 );
}