ActionScheduler_WPCLI_QueueRunner::add_hooks()protectedWC 1.0

Add our hooks to the appropriate actions.

Метод класса: ActionScheduler_WPCLI_QueueRunner{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->add_hooks();

Код ActionScheduler_WPCLI_QueueRunner::add_hooks() 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 );
}