[WordPress] 外掛分享: Healthy filenames

首頁 › 外掛目錄 › Healthy filenames
100+
安裝啟用
—
尚無評分
30 天前
最後更新
—
問題解決
WordPress 5.3+ PHP 7.4+ v1.1.0 上架:2017-10-01

內容簡介

這個外掛使用 WordPress 的 hook “wp_handle_upload_prefilter”,並修改檔名來移除所有特殊字元。

功能:
– 移除重音符號
– 移除特殊字元
– 將檔名轉為小寫

範例:
– 檔名: rick & morty.png > rick-morty.png
– 檔名: finaL fantasy / (Copié) (Copié).jpg > final-fantasy-copie-copie.jpg

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Healthy filenames」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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”.

延伸相關外掛

文章
Filter
Mastodon