New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

aginev/wp-sanitize

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aginev/wp-sanitize

WordPress transliterate post slugs and media file names

Source
Packagist
Version
0.0.3
Version published
Total downloads
45
Maintainers
1
Created
Source

Transliterate WordPress post slugs and media file names

If you are dealing with content data have non Ascii character like Bulgarian, Russian, German etc. and want to have all characters transliterated in slugs and file names you can use this package.

Install

composer require aginev/wp-sanitize

Usage

Transliterate post slugs

wp_sanitize_title();
// Имало едно време в Мексико -> imalo-edno-vreme-v-meksiko

Transliterate media library file names

wp_sanitize_filenames();
// Имало едно време в Мексико.jpg -> imalo-edno-vreme-v-meksiko.jpg

License

Everything in this repository is MIT License unless otherwise specified.

MIT © 2018 Atanas Ginev

Keywords

aginev

FAQs

Package last updated on 29 Nov 2018

Related posts