ActionScheduler_Logger::log_unexpected_shutdown
Log unexpected shutdown.
Method of the class: ActionScheduler_Logger{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ActionScheduler_Logger = new ActionScheduler_Logger(); $ActionScheduler_Logger->log_unexpected_shutdown( $action_id, $error );
- $action_id(int) (required)
- Action ID.
- $error(mixed[]) (required)
- Error.
ActionScheduler_Logger::log_unexpected_shutdown() ActionScheduler Logger::log unexpected shutdown code WC 10.8.1
public function log_unexpected_shutdown( $action_id, $error ) {
if ( ! empty( $error ) ) {
/* translators: 1: error message 2: filename 3: line */
$this->log( $action_id, sprintf( __( 'unexpected shutdown: PHP Fatal error %1$s in %2$s on line %3$s', 'woocommerce' ), $error['message'], $error['file'], $error['line'] ) );
}
}