action_scheduler_before_execute
Использование
add_action( 'action_scheduler_before_execute', 'wp_kama_action_scheduler_before_execute_action', 10, 2 ); /** * Function for `action_scheduler_before_execute` action-hook. * * @param $action_id * @param $context * * @return void */ function wp_kama_action_scheduler_before_execute_action( $action_id, $context ){ // action... }
- $action_id
- -
- $context
- -
Где вызывается хук
action_scheduler_before_execute
woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php 77
do_action( 'action_scheduler_before_execute', $action_id, $context );
Где используется хук в WooCommerce
woocommerce/packages/action-scheduler/classes/ActionScheduler_FatalErrorMonitor.php 31
add_action( 'action_scheduler_before_execute', array( $this, 'track_current_action' ), 0, 1 );
woocommerce/packages/action-scheduler/classes/ActionScheduler_FatalErrorMonitor.php 44
remove_action( 'action_scheduler_before_execute', array( $this, 'track_current_action' ), 0 );
woocommerce/packages/action-scheduler/classes/WP_CLI/ActionScheduler_WPCLI_QueueRunner.php 79
add_action( 'action_scheduler_before_execute', array( $this, 'before_execute' ) );