How to get the value of customer custom attribute load by customer Id in phtml file in Magento2.3.0?
$customer = $this->customerRepositoryInterface->getById($customerId);
$value = $customer->getCustomAttribute('business type)->getValue();
I have referred many links, but not able to achieve the value. Any help would be appreciated.