action_scheduler_init хук-событиеWC 3.5.5

Fires when Action Scheduler is ready: it is safe to use the procedural API after this point.

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

add_action( 'action_scheduler_init', 'wp_kama_action_scheduler_init_action' );

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

	// action...
}

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

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

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

ActionScheduler::init()
action_scheduler_init

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

woocommerce/includes/class-woocommerce.php 348
add_action( 'action_scheduler_init', array( $this, 'add_recurring_action_wrappers' ) );
woocommerce/packages/action-scheduler/classes/ActionScheduler_RecurringActionScheduler.php 28
add_action( 'action_scheduler_init', array( $this, 'schedule_recurring_scheduler_hook' ) );