action_scheduler_unexpected_shutdown
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
action_scheduler_unexpected_shutdown
woocommerce/packages/action-scheduler/classes/ActionScheduler_FatalErrorMonitor.php 91
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 72
add_action( 'action_scheduler_unexpected_shutdown', array( $this, 'log_unexpected_shutdown' ), 10, 2 );