ActionScheduler_WPCLI_QueueRunner::add_hooks
Add our hooks to the appropriate actions.
Метод класса: ActionScheduler_WPCLI_QueueRunner{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->add_hooks();
Код ActionScheduler_WPCLI_QueueRunner::add_hooks() ActionScheduler WPCLI QueueRunner::add hooks WC 10.5.2
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 );
}