WordPress at Your Fingertips
function is not described

ActionScheduler_WPCLI_QueueRunner::add_hooks() protected WC 1.0

Add our hooks to the appropriate actions.

{} It's a method of the class: ActionScheduler_WPCLI_QueueRunner{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of ActionScheduler_WPCLI_QueueRunner::add_hooks() WC 6.1.1

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 );
}