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