ActionScheduler_FatalErrorMonitor::detach
Stop monitoring.
Метод класса: ActionScheduler_FatalErrorMonitor{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$ActionScheduler_FatalErrorMonitor = new ActionScheduler_FatalErrorMonitor(); $ActionScheduler_FatalErrorMonitor->detach();
Код ActionScheduler_FatalErrorMonitor::detach() ActionScheduler FatalErrorMonitor::detach WC 11.2.2
public function detach() {
$this->claim = null;
$this->untrack_action();
remove_action( 'shutdown', array( $this, 'handle_unexpected_shutdown' ) );
remove_action( 'action_scheduler_before_execute', array( $this, 'track_current_action' ), 0 );
remove_action( 'action_scheduler_after_execute', array( $this, 'untrack_action' ), 0 );
remove_action( 'action_scheduler_execution_ignored', array( $this, 'untrack_action' ), 0 );
remove_action( 'action_scheduler_failed_execution', array( $this, 'untrack_action' ), 0 );
}