action_scheduler_init
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
woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler.php 219
do_action( 'action_scheduler_init' );
woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler.php 236
do_action( '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' ) );