WW CyrToLat
WordPress plugin to transliterate cyrillic slugs into latin
by Volodymyr Kolesnykov <volodymyr@wildwolf.name> · github.com/sjinks/wp-plugin-cyrtolat
★ 0stars
47composer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/sjinks/wp-plugin-cyrtolat/archive/refs/heads/master.zipAlso on Packagist as wildwolf/wp-cyrtolat:
composer require wildwolf/wp-cyrtolatFrom the readme
wp-plugin-cyrtolat
WordPress plugin to transliterate Cyrillic slugs into Latin.
The plugin was written as a replacement to cyr3lat,
which is no longer maintained and is vulnerable to SQL injection.
Unlike other plugins, this one does not use sanitizetitle hook (which fires for many things
other than post/page/term slugs), which reduces the risk of unwanted side effects.
The plugin uses wpinsertpostdata, wpinsertattachmentdata, and getsamplepermalink
for posts/pages/attachments, and wpinserttermdata / wpupdatetermdata for terms.
The plugin provides three custom filters:
1. wwcyrtolatxlattable: allows for customization of the transliteration table.
2. wwcyrtolatxlatretable: allows for customization of the regular expression-based transliteration table.
3. transliteratename: this one allows to modify the transliterated name/slug.
Installation
Run from the WordPress root directory:
After that, please go to the Admin Dashboard = Plugins and activate the plugin.
Configuration
Admin Dashboard = Options = WW CyrToLat