# SSO Avatar Not Updating

**URL:** <https://meta.discourse.org/t/sso-avatar-not-updating/25569>\
**Category:** WordPress\
**Created:** [Février 23, 2015, 3:05 UTC](https://meta.discourse.org/t/sso-avatar-not-updating/25569 "2015-02-23T15:05:54Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [Juin 1, 2017, 12:13 UTC](https://meta.discourse.org/t/sso-avatar-not-updating/25569/11 "2017-06-01T00:13:35Z")

</div>

~~So far, I can’t get it working either~~. This works on a live site, I haven’t been able to get it working in my development environment. The SSO params that are sent to Discourse now have a filter applied to them, so you don’t need to override the plugin’s code.

Adding something like this to your `functions.php` file should work.

```plaintext
add_filter( 'wpdc_sso_params', 'my_namespace_force_avatar_update' );
function my_namespace_force_avatar_update( $sso_params ) {
    $sso_params['avatar_force_update'] = 'true';

    return $sso_params;
}

```

---

_[View the full topic](https://meta.discourse.org/t/sso-avatar-not-updating/25569)._
