內容簡介
Avatarly 為 WordPress 提供一個本地自我托管的頭像系統,使用者可以直接在網站上上傳個人頭像,無需依賴 Gravatar。網站擁有者可完全控制上傳權限、頭像外觀及上傳位置。
【主要功能】
• 本地頭像儲存,無需發送至 Gravatar
• 前端拖放/AJAX 上傳,無 JS 瀏覽器自動回退
• 內建裁剪與重新定位彈出視窗
• 嚴格的上傳驗證,檢查 MIME/副檔名
• 自動移除上傳圖片的 EXIF/GPS 元數據
• 精細的權限設定,依角色限制上傳
外掛標籤
開發者團隊
原文外掛簡介
Avatarly adds a local, self-hosted avatar system to WordPress. Users can upload a profile picture directly on your site instead of relying on Gravatar, and site owners get full control over who’s allowed to upload, how avatars look, and where uploads are permitted.
Three ways to let users manage their avatar on the front end:
Shortcode — [avatarly]
Widget — add the “Avatarly (Legacy)” widget to any sidebar (classic, non-block themes)
Gutenberg block — search for “Avatarly” in the block inserter
Avatars can also always be managed from the standard WordPress Edit Profile screen.
Key features
Local avatar storage — no data sent to Gravatar unless you choose to keep it as a fallback.
Drag-and-drop / AJAX upload on the front end (progressively enhanced; falls back to a normal form for no-JS visitors).
Built-in crop and reposition popup: drag to pan and use the zoom slider to frame the shot before saving, or skip it to use the automatic center crop.
Strict upload validation: real MIME/extension checks, image verification, and file-size limits — not just a filename blacklist.
Automatic EXIF/GPS metadata stripping from uploaded images.
Fine-grained permissions: restrict uploads by capability and/or by specific roles.
A dedicated Styling tab: size, shape (circle/rounded/square), border, shadow, accent color, and button text.
Optional automatic cleanup of avatar files when a user account is deleted.
Translation ready.
Developer hooks
avatarly_avatar_size (filter) — change the avatar size used when generating a sized copy.
avatarly_avatar_data (filter) — filter the final avatar data array.
avatarly_avatar_html (filter) — filter the rendered HTML.
avatarly_avatar_uploaded (action) — fires after a successful upload.
avatarly_avatar_deleted (action) — fires after an avatar is removed.
