| 开发者 | saumya010 |
|---|---|
| 更新时间 | 2026年9月19日 02:58 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[avatarly]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 <img> HTML.avatarly_avatar_uploaded (action) — fires after a successful upload.avatarly_avatar_deleted (action) — fires after an avatar is removed.avatarly folder to /wp-content/plugins/, or install it through the Plugins screen directly.[avatarly] shortcode to a page, add the "Avatarly (Legacy)" widget to a sidebar, or insert the "Avatarly" block wherever logged-in users need to manage their avatar.It works as a Gravatar alternative, but by default it layers on top rather than replacing it outright: if a user hasn't uploaded a local avatar, WordPress falls back to Gravatar (or your configured default) as usual. You can disable that fallback in Settings → Avatarly → General & Permissions if you want local avatars only.
JPG, PNG, GIF, and WebP.
Yes. When you select or drop an image, a crop popup lets you drag to reposition and zoom before saving. Selecting "Skip" uploads the image with an automatic center crop instead.
Yes. Under Settings → Avatarly → General & Permissions you can require the upload_files capability and/or restrict uploads to specific roles.
In wp-content/uploads/avatarly/, following WordPress's standard year/month upload structure.
Styling settings take effect immediately — if a page still shows the old look after saving, a caching plugin (or your host) is likely serving a cached copy of that page from before the change. Clear that cache (or wait for it to expire) rather than re-saving the setting.
By default nothing is deleted automatically. You can enable automatic cleanup on user deletion in the General & Permissions tab.
enctype="multipart/form-data", since core itself has no file upload there — without it, the browser can't actually send file data on submit. The form now correctly includes this attribute so avatar uploads on that screen work as expected.