Paul was talking about cultural issues of that time, not necessarily that women of every decade, in every generation everywhere had to wear a veil. In the area of Corinth, it was the culture for married women to wear a veil while praying and prophesying to show their submission to their husband as head of their family in the church. But some women were taking their veils off while praying and prophesying as if to show that they're defying their position.
So this isn't about a command from God that women must wear veils when they pray and prophesy for all time everywhere. This was a matter of gender distinction and position. If Paul was here in the now, Paul would have defined how men and women should show distinction between the genders and hierarchy of family (husbands as leaders and wives as under the care, protection and leadership of the husband, and single people as proper single men and women under the care of the Lord Jesus).
❧