# WP Discourse SSO does not synchronize local avatars provided by Advanced Site Enhancements

**URL:** https://meta.discourse.org/t/wp-discourse-sso-does-not-synchronize-local-avatars-provided-by-advanced-site-enhancements/406809
**Category:** WordPress
**Created:** [4 juli 2026 om 03:00 UTC](https://meta.discourse.org/t/wp-discourse-sso-does-not-synchronize-local-avatars-provided-by-advanced-site-enhancements/406809 "2026-07-04T03:00:53Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![miednr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/miednr/32/539145_2.png) [@miednr](https://meta.discourse.org/u/miednr)
#### Post date: [4 juli 2026 om 03:00 UTC](https://meta.discourse.org/t/wp-discourse-sso-does-not-synchronize-local-avatars-provided-by-advanced-site-enhancements/406809/1 "2026-07-04T03:00:53Z")

</div>

Hello,

I am using:

- WordPress
- [WP Discourse](https://github.com/discourse/wp-discourse) (latest version)
- Advanced Site Enhancements (ASE), using its Local User Avatar feature (no Gravatar)

The avatar is correctly displayed everywhere in WordPress.

ASE stores the attachment ID in the user meta field:

`local_user_avatar_attachment_id`

During WordPress SSO login, however, Discourse always imports the default avatar instead of the local avatar.

I already tried using the `wpdc_sso_avatar_url` filter to return the media library URL, but it made no difference.

Therefore I have two questions:

1. Does [WP Discourse](https://github.com/discourse/wp-discourse) still use `wpdc_sso_avatar_url` for avatar synchronization?
2. Which function or filter is currently responsible for determining the avatar URL sent to Discourse?

Any guidance would be appreciated.

---

_[View the full topic](https://meta.discourse.org/t/wp-discourse-sso-does-not-synchronize-local-avatars-provided-by-advanced-site-enhancements/406809)._
