FluentCommunity Avatar Sync
Wordpress plugin to sync Fluentcommunity Avatar picture with wordpress
by wpFcAvatarSync Contributors · github.com/melchinger/wpfcavatarsync
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/melchinger/wpfcavatarsync/archive/refs/heads/main.zipSynchronises avatars maintained in FluentCommunity with WordPress user profiles. The plugin stores the FluentCommunity avatar as a media attachment, updates it whenever a profile is saved, and prioritises the synced avatar over Gravatar across the site.
Features
- Downloads FluentCommunity avatars during user registration and profile updates (both back-end and front-end).
- Skips unnecessary downloads when the avatar URL has not changed.
- Automatically replaces the default WordPress avatar URL (including Gravatar) with the synced attachment.
- Cleans up previously synced avatars when a new one is stored (filterable).
- Exposes filters and actions to customise field detection, cleanup behaviour, and to hook into success or failure events.
Installation
- Copy the plugin folder into your WordPress installation's
wp-content/pluginsdirectory. - Activate FluentCommunity Avatar Sync from the WordPress Plugins screen.
Customisation
Use the provided filters and actions to adapt the plugin to your FluentCommunity setup:
fc_avatar_sync_post_fields– Adjust the list of$_POSTfield names that may contain the avatar URL.fc_avatar_sync_meta_fields– Adjust the user meta keys checked for an avatar URL.fc_avatar_sync_delete_previous_attachment– Returnfalseto keep the previously synced attachment.fc_avatar_sync_updated– Fires after a new avatar attachment has been saved.fc_avatar_sync_failed– Fires when the avatar could not be downloaded.
Requirements
- WordPress 5.8 or later.
- PHP 7.4 or later.