ActionScheduler_WPCLI_QueueRunner::add_hooks()protectedWC 1.0

Add our hooks to the appropriate actions.

Method of the class: ActionScheduler_WPCLI_QueueRunner{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->add_hooks();

ActionScheduler_WPCLI_QueueRunner::add_hooks() code WC 8.7.0

protected function add_hooks() {
	add_action( 'action_scheduler_before_execute', array( $this, 'before_execute' ) );
	add_action( 'action_scheduler_after_execute', array( $this, 'after_execute' ), 10, 2 );
	add_action( 'action_scheduler_failed_execution', array( $this, 'action_failed' ), 10, 2 );
}