action_scheduler_after_execute

action_scheduler_after_execute

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.7.1

do_action('action_scheduler_after_execute') is found 1 times:

  • /packages/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php line 103
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
        $action = $this->store->fetch_action( $action_id );
        $this->store->log_execution( $action_id );
        $action->execute();
        do_action( 'action_scheduler_after_execute', $action_id, $action, $context );
        $this->store->mark_complete( $action_id );
    } catch ( Throwable $e ) {
        // Throwable is defined when executing under PHP 7.0 and up. We convert it to an exception, for
        // compatibility with ActionScheduler_Logger.
        throw new Exception( $e->getMessage(), $e->getCode(), $e );
    }

See this hook used in plugins: