I am adding this information here since I see this in the code:
// FIXME WPML defines a language order ( since 2.8.1 ) http://wpml.org/2013/04/wpml-2-8/.
// This is lost as I don't know how it is stored.
The language order is saved in the options table under icl_sitepress_settings. There is a key for languages_order and this is where the language order is saved.
It'll look like (I have Spanish as the primary language):
[languages_order] => Array
(
[0] => es
[1] => en
)
I am adding this information here since I see this in the code:
The language order is saved in the options table under
icl_sitepress_settings
. There is a key forlanguages_order
and this is where the language order is saved.It'll look like (I have Spanish as the primary language):