In order to retrieve version of any extension/module in Magento 2, you can use following code snippet.
$versionInfo = $this->_objectManager->get('Magento\Framework\Module\ModuleList')->getOne('Wallet_Version');
echo "<pre>";
print_r($versionInfo);
echo "</pre>";Here, Wallet is vendor name and Version is module name.
Write an article about ecommerce that help people to grow their ecommerce business. You’ll find best ecommerce guide, news, tips & more!


May 7, 2020 at 2:25 pm
Nice Work. I love your blog. Great job team.