I would like to know if it's possible to return the URL of the flag for the current language.
I have a button in the header that opens a popup with the full language switcher. I have that working, I just need the button to be the flag of the currently selected language.
Before this ticket is assigned to one of my colleagues I will give the initial answer.
There is no direct way to retrieve the flag image URLs, but you can use the WPML Hook below to get a lot of information about the active languages and int he array that it returns there is an item for the flag URL: