action_scheduler_unexpected_shutdown action-hookWC 1.0

Usage

add_action( 'action_scheduler_unexpected_shutdown', 'wp_kama_action_scheduler_unexpected_shutdown_action', 10, 2 );

/**
 * Function for `action_scheduler_unexpected_shutdown` action-hook.
 * 
 * @param  $action_id 
 * @param  $error     
 *
 * @return void
 */
function wp_kama_action_scheduler_unexpected_shutdown_action( $action_id, $error ){

	// action...
}
$action_id
-
$error
-

Where the hook is called

ActionScheduler_FatalErrorMonitor::handle_unexpected_shutdown()
action_scheduler_unexpected_shutdown
woocommerce/packages/action-scheduler/classes/ActionScheduler_FatalErrorMonitor.php 49
do_action( 'action_scheduler_unexpected_shutdown', $this->action_id, $error );

Where the hook is used in WooCommerce

woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Logger.php 55
add_action( 'action_scheduler_unexpected_shutdown', array( $this, 'log_unexpected_shutdown' ), 10, 2 );