action_scheduler_execution_ignored
Использование
add_action( 'action_scheduler_execution_ignored', 'wp_kama_action_scheduler_execution_ignored_action', 10, 2 );
/**
* Function for `action_scheduler_execution_ignored` action-hook.
*
* @param $action_id
* @param $context
*
* @return void
*/
function wp_kama_action_scheduler_execution_ignored_action( $action_id, $context ){
// action...
}
- $action_id
- -
- $context
- -
Где вызывается хук
action_scheduler_execution_ignored
woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php 95
do_action( 'action_scheduler_execution_ignored', $action_id, $context );
Где используется хук в WooCommerce
woocommerce/packages/action-scheduler/classes/ActionScheduler_FatalErrorMonitor.php 48
add_action( 'action_scheduler_execution_ignored', array( $this, 'untrack_action' ), 0, 0 );
woocommerce/packages/action-scheduler/classes/ActionScheduler_FatalErrorMonitor.php 61
remove_action( 'action_scheduler_execution_ignored', array( $this, 'untrack_action' ), 0 );
woocommerce/packages/action-scheduler/classes/WP_CLI/Action/Run_Command.php 42
add_action( 'action_scheduler_execution_ignored', array( $this, 'on_action_ignored' ) );
woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Logger.php 74
add_action( 'action_scheduler_execution_ignored', array( $this, 'log_ignored_action' ), 10, 2 );