WordPress at Your Fingertips
function is not described

ActionScheduler_Logger::log_unexpected_shutdown() public WC 1.0

{} It's a method of the class: ActionScheduler_Logger{}

No Hooks.

Return

null. Nothing.

Usage

$ActionScheduler_Logger = new ActionScheduler_Logger();
$ActionScheduler_Logger->log_unexpected_shutdown( $action_id, $error );
$action_id (required)
-
$error (required)
-

Code of ActionScheduler_Logger::log_unexpected_shutdown() WC 6.1.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'] ) );
	}
}