BACK TO DIRECTORY

Healthy filenames

by Kantari Samy

0.0
(0 ratings)

The plugin uses the hooks “wp_handle_upload_prefilter” and “wp_handle_sideload_prefilter” and modifies the filename to remove all special characters.

FEATURES
– Remove accents
– Remove special characters
– Change the filename to lowercase
– Convert non-Latin characters to Latin ones (requires the PHP “intl” extension)
– Optionally replace underscores with hyphens
– Count the uploads that had to be cleaned and the ones that were already clean

Examples :
– filename : rick & morty.png > rick-morty.png
– filename : finaL fantasy / (Copié) (Copié).jpg > final-fantasy-copie-copie.jpg
– filename : Привет.jpg > privet.jpg

The settings and the counters are in “Settings > Healthy filenames”.

Screenshots

Example

Example

Settings page: upload counters and cleaning options

Settings page: upload counters and cleaning options

Plugin Details

Active Installs
100
Total Downloads
3,065
Version
1.1.0
Requires WP
5.3
Requires PHP
7.4
Tested Up To
7.1.4
Added
2017-10-02
Last Updated
2026-09-30 9:10am GMT

Ratings

5
0
4
0
3
0
2
0
1
0