Automattic\WooCommerce\Internal\Email

DeferredEmailQueue::restore_args_from_queueprivateWC 1.0

Restore queued arguments after Action Scheduler storage.

Method of the class: DeferredEmailQueue{}

No Hooks.

Returns

Array|null.

Usage

// private - for code of main (parent) class only
$result = $this->restore_args_from_queue( $args ): ?array;
$args(array) (required)
The arguments for the email callback.

DeferredEmailQueue::restore_args_from_queue() code WC 10.9.1

private function restore_args_from_queue( array $args ): ?array {
	try {
		foreach ( $args as $key => $arg ) {
			$args[ $key ] = $this->restore_arg_from_queue( $arg );
		}

		return $args;
	} catch ( \UnexpectedValueException $e ) {
		return null;
	}
}