Automattic\WooCommerce\Internal\Email

DeferredEmailQueue::restore_args_from_queueprivateWC 1.0

Restore queued arguments after Action Scheduler storage.

Метод класса: DeferredEmailQueue{}

Хуков нет.

Возвращает

Массив|null.

Использование

// private - только в коде основоного (родительского) класса
$result = $this->restore_args_from_queue( $args ): ?array;
$args(массив) (обязательный)
The arguments for the email callback.

Код DeferredEmailQueue::restore_args_from_queue() WC 11.0.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;
	}
}