WP Manifestindependent plugin directory
manifest / i18n / wp-plugin-cyrtolat

WW CyrToLat

WordPress plugin to transliterate cyrillic slugs into latin

★ 0stars
47composer installs

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/sjinks/wp-plugin-cyrtolat/archive/refs/heads/master.zip

On Packagist as wildwolf/wp-cyrtolat:

composer require wildwolf/wp-cyrtolat
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

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 sanitize_title hook (which fires for many things other than post/page/term slugs), which reduces the risk of unwanted side effects.

The plugin uses wp_insert_post_data, wp_insert_attachment_data, and get_sample_permalink for posts/pages/attachments, and wp_insert_term_data / wp_update_term_data for terms.

The plugin provides three custom filters:

  1. wwcyrtolat_xlat_table: allows for customization of the transliteration table.
  2. wwcyrtolat_xlat_re_table: allows for customization of the regular expression-based transliteration table.
  3. transliterate_name: this one allows to modify the transliterated name/slug.

Installation

Run from the WordPress root directory:

composer require wildwolf/wp-cyrtolat

After that, please go to the Admin Dashboard => Plugins and activate the plugin.

Configuration

Admin Dashboard => Options => WW CyrToLat