action_scheduler_init action-hookWC 3.5.5

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

Usage

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...
}

Changelog

Since 3.5.5 Introduced.

Where the hook is called

ActionScheduler::init()
action_scheduler_init

Where the hook is used in WooCommerce

woocommerce/includes/class-woocommerce.php 330
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' ) );