Sohaus Clean Emoji Slugs
Sohaus Clean Emoji Slugs
Description
Sohaus Clean Emoji Slugs keeps WordPress permalinks clean when editors use emoji in post titles.
By default, WordPress may include emoji or encoded emoji characters in generated slugs. This plugin removes emoji, pictograms, dingbats, variation selectors and related characters from slugs while leaving the original title unchanged.
Example:
❤️ I love WordPress 🩸
Becomes:
i-love-wordpress
The plugin works automatically when a post, page or supported public post type is saved.
Features
- Removes emoji from slugs.
- Cleans already encoded emoji in existing slugs when a post is saved, but does not bulk-update old posts automatically.
- Keeps emoji in post titles.
- Works on save and update.
- Supports posts and pages by default.
- Does not add database tables.
- Does not track users.
- Does not send any data to external services.
Installation
- Upload the plugin files to the
/wp-content/plugins/sohaus-clean-emoji-slugsdirectory, or install the plugin through the WordPress plugins screen. - Activate the plugin through the “Plugins” screen in WordPress.
- Edit or create a post with emoji in the title.
- Save the post. The slug will be cleaned automatically.
Faq
No. The plugin only cleans the slug. The post title remains unchanged.
No. Existing posts are cleaned when they are saved again. This avoids unexpected bulk URL changes.
No. The plugin only changes the slug. If you change URLs for already published content, make sure redirects are handled by WordPress or by your SEO/redirection setup.
The plugin can be adjusted to support custom post types. By default it is intended for all post types.
Reviews
Changelog
1.0.0
- Initial release.