I have set wordpress to generate custom permalink structure using /%postname%/.
But, someof the contenst is written in cyrillic alphabet, and I want permalinks to be latin alphabet only.
Now, I have to edit each permalink and type it in in latin characters manually.
My idea is to change the way permalinks are autogeneraed, by passing autogenerated link through my custom function that would replace each cyrillic character with aproppriate latin.
I know how to transliterate form cyrillic to latin. Problem is I cannot find a hook which I should use to apply this transliteration.
To be clear, I do not want to change dipslay of permalink (if I understood well, ‘the_permalink’ filter is supposed to do that. I want permalinks to be altered before they are writen to database.