• Resolved pedjas

    (@pedjas)


    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Take a look at the “editable_slug” filter. Also possibly the “sanitize_title” filter.

    Thread Starter pedjas

    (@pedjas)

    Just came to inform that I solved issue using ‘sanitize_title’, and I see you already posted info. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to manipulate autogenerated permalink?’ is closed to new replies.