ActionScheduler_Logger::log_unexpected_shutdown()
Method of the class: ActionScheduler_Logger{}
No Hooks.
Return
null
. Nothing (null).
Usage
$ActionScheduler_Logger = new ActionScheduler_Logger(); $ActionScheduler_Logger->log_unexpected_shutdown( $action_id, $error );
- $action_id (required)
- -
- $error (required)
- -
ActionScheduler_Logger::log_unexpected_shutdown() ActionScheduler Logger::log unexpected shutdown code WC 8.6.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'] ) ); } }