Background of the issue:
We need to update hreflang code for SEO reasons on our site hidden link. We won't be changing the default locale or the language code. We have automated translations running by hidden link.
Symptoms:
NA
Questions:
Do we have to make any changes for mapping as we are changing locale or language code?
But please notice that, this is the custom code. I would like to inform you that helping you with custom code, is out of the scope of WPML.
If you are not able to accomplish this, I would recommend you contact one of our certified partners who will be more than happy to help you with this. In this link, you will find a list of our certified partners: https://wpml.org/contractors/
Ah yes, you can go to WPML > Languages > Site languages > Edit languages and update the hreflang. It won't affect the language code and language mapping that you are using.