BG Slug Transliterator releases
WordPress plugin for Bulgarian Cyrillic to Latin URL slug transliteration
by Petar Teodosiev · github.com/petar-nauka/bg-slug-transliterator
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/petar-nauka/bg-slug-transliterator/releases/download/v1.1.0/bg-slug-transliterator-v1.1.0.zipReadme
BG Slug Transliterator
BG Slug Transliterator is a small WordPress plugin that safely transliterates Bulgarian Cyrillic post and page URL slugs into Latin slugs.
Version 1.1.0 intentionally does not hook into WordPress' global sanitize_title filter. This keeps WooCommerce products, variations, attributes, terms, and taxonomies untouched.
Features
- Automatically transliterates new WordPress post slugs.
- Automatically transliterates new WordPress page slugs.
- Does not touch WooCommerce products.
- Does not touch WooCommerce product variations.
- Does not touch WooCommerce product attributes.
- Does not touch terms, taxonomies, categories, tags, or custom post types by default.
- Adds a
Tools > BG Slug Transliteratoradmin page. - Includes an optional bulk conversion button for existing posts and pages only.
Safety Notes
Earlier versions used a broader slug hook. Version 1.1.0 narrows the plugin scope to post and page slugs only.
If you use WooCommerce, Shop Kit, variation swatches, product filters, product attribute plugins, or any other ecommerce extension, use version 1.1.0 or newer.
Installation
- Download the release ZIP.
- In WordPress admin, go to
Plugins > Add New > Upload Plugin. - Upload the ZIP file.
- Activate
BG Slug Transliterator.
Manual installation:
- Upload the
bg-slug-transliteratorfolder towp-content/plugins/. - In WordPress admin, go to
Plugins > Installed Plugins. - Activate
BG Slug Transliterator.
Existing URLs
The plugin automatically affects newly generated post and page slugs.
For existing content, go to:
Tools > BG Slug Transliterator
Then confirm and click:
Convert existing post and page slugs to Latin
Changing existing slugs changes URLs. On a public site, make a backup first and add redirects from the old URLs to the new URLs if needed.
Developer Opt-In For Custom Post Types
By default, only post and page are included.
Developers can opt in specific custom post types with:
add_filter( 'bg_slug_transliterator_allowed_post_types', function ( $post_types ) {
$post_types[] = 'your_custom_post_type';
return $post_types;
} );
Do not add WooCommerce product or product_variation unless you understand the URL and attribute consequences.
Requirements
- WordPress 5.8 or newer
- PHP 7.4 or newer
License
GPL-2.0-or-later
Read the full README on GitHub →