Magento provided multiple ways to get/set store configuration.
By setting and/or getting data programmatically, you can work on multiple store shops. Moreover, to retrieve data and set it as in particular cases programmatically way is the right way to do it.
Attachment 14152
For more information, click https://store.magenest.com/blog/get-...lly-magento-2/