內容簡介
這個外掛使用 WordPress 的 hook “wp_handle_upload_prefilter”,並修改檔名來移除所有特殊字元。
功能:
– 移除重音符號
– 移除特殊字元
– 將檔名轉為小寫
範例:
– 檔名: rick & morty.png > rick-morty.png
– 檔名: finaL fantasy / (Copié) (Copié).jpg > final-fantasy-copie-copie.jpg
外掛標籤
開發者團隊
原文外掛簡介
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”.
