woocommerce_email_template_divergence_sweep_complete хук-событиеWC 10.8.0

Fires once after the post-upgrade divergence sweep finishes classifying every sync-registered email post.

Hooked by \Automattic\WooCommerce\Internal\EmailEditor\WCTransactionalEmails\WCEmailTemplateAutoApplier::schedule() to enqueue the batched auto-apply job for posts classified as core_updated_uncustomized. Fires unconditionally — auto-applier short-circuits when no candidates exist.

Использование

add_action( 'woocommerce_email_template_divergence_sweep_complete', 'wp_kama_woocommerce_email_template_divergence_sweep_complete_action' );

/**
 * Function for `woocommerce_email_template_divergence_sweep_complete` action-hook.
 * 
 * @return void
 */
function wp_kama_woocommerce_email_template_divergence_sweep_complete_action(){

	// action...
}

Список изменений

С версии 10.8.0 Введена.

Где вызывается хук

WCEmailTemplateDivergenceDetector::run_sweep()
woocommerce_email_template_divergence_sweep_complete
woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateDivergenceDetector.php 353
do_action( 'woocommerce_email_template_divergence_sweep_complete' );

Где используется хук в WooCommerce

woocommerce/src/Internal/EmailEditor/Integration.php 163
add_action( 'woocommerce_email_template_divergence_sweep_complete', array( WCEmailTemplateAutoApplier::class, 'schedule' ), 10 );