[WordPress] 外掛分享: ChargeWP – Front End Avatar Upload

首頁外掛目錄 › ChargeWP – Front End Avatar Upload
WordPress 外掛 ChargeWP – Front End Avatar Upload 的封面圖片
20+
安裝啟用
★★★★★
5/5 分(1 則評價)
130 天前
最後更新
問題解決
WordPress 5.8+ PHP 7.4+ v2.0.2 上架:2025-11-29

內容簡介

**總結:**
ChargeWP Avatar Upload 提供了一個清潔、直觀的方式給使用者更新他們的個人照片,而不需要打開儀表板。這個外掛適用於現代 WordPress 網站:安全、輕量且主題友好。

**問題與答案:**

1. ChargeWP Avatar Upload 主要提供了哪些關鍵功能?
- 即時前端上傳 — 在頁面上或 WooCommerce “My Account” 中更新您的頭像。
- 內建 SmartCrop.js — 自動將臉部居中,提供完美的專業效果。
- Gutenberg 塊和短碼 — 在任何您想要的地方添加頭像上傳器。
- Gravatar 友好 — 保留現有 Gravatars,並在上傳自訂圖像時優先顯示。
- 自動清理 — 取代舊頭像,以保持您的媒體庫整潔。
- 輕量且本地化 — 沒有複雜的設置,沒有設置畫面,也沒有充斥。

2. 為什麼使用者會喜歡 ChargeWP Avatar Upload 外掛?
- 直接開箱即用。
- 看起來和感覺像是 WordPress 和 WooCommerce 的一部分。
- 通過智能裁剪和優化的 JPEG 輸出進行安全上傳。
- 支持 WordPress 允許的所有圖像類型(JPG、PNG、WebP 等)。
- 提供翻譯和開發者友好功能。

3. 如何使用外掛中的 shortcode 來設置頭像?
- 範例:[chargewp_avatar type="0" check_page_author="false"]
- 屬性:
- type — 0 = 僅頭像,1 = 頭像 + 名稱 + ID,2 = 頭像 + 名稱 + ID + 檔案連結。默認值:0
- check_page_author — true 或 false。當為 true 時,顯示頁面或帖子作者的頭像,而不是當前使用者。默認值:false
- classes — 可選的額外 CSS 類以進行自定義樣式。

這些是 ChargeWP Avatar Upload 外掛提供的主要功能和使用方法。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「ChargeWP – Front End Avatar Upload」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

It just works.
ChargeWP Avatar Upload gives users a clean, intuitive way to update their profile photo without opening the dashboard.
It’s built for modern WordPress sites: secure, lightweight, and theme-friendly.
Key Features

Instant front-end upload — update your avatar right on the page or in WooCommerce “My Account.”
SmartCrop.js built in — automatically centers faces for perfect, professional results.
Gutenberg Block and Shortcode — add the avatar uploader anywhere you want.
Gravatar friendly — keeps existing Gravatars in place and simply takes priority when a custom image is uploaded.
Automatic cleanup — replaces old avatars so your media library stays tidy.
Lightweight and native — no complex settings, no setup screens, and no bloat.

Why You’ll Love It

Works straight out of the box.
Looks and feels like part of WordPress and WooCommerce.
Secure uploads with smart cropping and optimized JPEG output.
Supports all image types WordPress allows (JPG, PNG, WebP, and more).
Translation ready and developer friendly.

Usage
Shortcode example:
[chargewp_avatar type="0" check_page_author="false"]

Attributes:
– type — 0 = avatar only, 1 = avatar + name + ID, 2 = avatar + name + ID + profile link. Default: 0
– check_page_author — true or false. When true, shows the page or post author’s avatar instead of the current user. Default: false
– classes — Optional extra CSS classes for custom styling.
Block:
– Insert the ChargeWP Avatar block in the editor.
– Adjust display type and author options from the block sidebar.
Developer Notes

Template overrides are supported. Copy files from
plugins/chargewp-avatar/templates/ to yourtheme/templates/cwpa/.
Filters to disable automatic placement:

add_filter('cwpa_auto_inject_wc_account', '__return_false');
add_filter('cwpa_auto_inject_cwpd_sidebar', '__return_false');

Filters to change display type:

cwpa_avatar_type_wc_account
cwpa_avatar_type_cwpd_sidebar

延伸相關外掛

文章
Filter
Apply Filters
Mastodon