action_scheduler_failed_to_schedule_next_instance
Использование
add_action( 'action_scheduler_failed_to_schedule_next_instance', 'wp_kama_action_scheduler_failed_to_schedule_next_instance_action', 10, 3 );
/**
* Function for `action_scheduler_failed_to_schedule_next_instance` action-hook.
*
* @param $action_id
* @param $e
* @param $action
*
* @return void
*/
function wp_kama_action_scheduler_failed_to_schedule_next_instance_action( $action_id, $e, $action ){
// action...
}
- $action_id
- -
- $e
- -
- $action
- -
Где вызывается хук
action_scheduler_failed_to_schedule_next_instance
woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php 179
do_action( 'action_scheduler_failed_to_schedule_next_instance', $action_id, $e, $action );
Где используется хук в WooCommerce
woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Logger.php 76
add_action( 'action_scheduler_failed_to_schedule_next_instance', array( $this, 'log_failed_schedule_next_instance' ), 10, 2 );