action_scheduler_begin_execute
Usage
add_action( 'action_scheduler_begin_execute', 'wp_kama_action_scheduler_begin_execute_action', 10, 2 ); /** * Function for `action_scheduler_begin_execute` action-hook. * * @param $action_id * @param $context * * @return void */ function wp_kama_action_scheduler_begin_execute_action( $action_id, $context ){ // action... }
- $action_id
- -
- $context
- -
Where the hook is called
action_scheduler_begin_execute
woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php 98
do_action( 'action_scheduler_begin_execute', $action_id, $context );
Where the hook is used in WooCommerce
woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Logger.php 68
add_action( 'action_scheduler_begin_execute', array( $this, 'log_started_action' ), 10, 2 );