內容簡介
我曾經在 functions.php 手動添加自定義預設頭像,每次更改都很麻煩。後來我決定尋找相應的外掛,然後就發現了「Add New Default Avatar」這個外掛,它可以在這裡下載:https://wordpress.org/extend/plugins/add-new-default-avatar/
雖然這個外掛已經很不錯了,但是它缺少一些功能,例如管理頭像、上傳圖片,以及自動縮放縮略圖等。因此,我進行了一些修改 🙂
以下是修改後的特點:
在啟用外掛前會保存當前的預設頭像,並在停用時還原
直接在外掛頁面使用 AJAX 上傳圖像
可以從預設頭像列表中刪除不需要的自定義預設頭像
外掛標籤
開發者團隊
② 後台搜尋「Add New Default Avatar [Emrikol's Fork]」→ 直接安裝(推薦)
原文外掛簡介
I’d been manually adding custom default avatars in functions.php for a while, and it was always a hassle to edit it to change them. I decided to see if there was a plugin available to do the job, and stumbled upon “Add New Default Avatar” here: https://wordpress.org/extend/plugins/add-new-default-avatar/
It was nice, but it was missing some features such as the ability to manage avatars, upload images, and automatically resize thumbnails. So I made a few modifications 🙂
Features:
Saves current default avatar before activating and restores it when deactivated
Upload images using AJAX directly from the plugin page
Ability to remove unneeded custom default avatars from the default avatar list
