# الوصول إلى صورة المستخدم في Discourse داخل ملف functions.php الخاص بـ WP

**URL:** <https://meta.discourse.org/t/accessing-discourse-user-avatar-in-wp-functions-php/95390>\
**Category:** WordPress\
**Created:** [22 أغسطس 2018، 9:47ص UTC](https://meta.discourse.org/t/accessing-discourse-user-avatar-in-wp-functions-php/95390 "2018-08-22T09:47:58Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [18 أبريل 2019، 6:17م UTC](https://meta.discourse.org/t/accessing-discourse-user-avatar-in-wp-functions-php/95390/7 "2019-04-18T18:17:09Z")

</div>

No, a similar hook has not been added for when WordPress is the SSO client. Unfortunately, it is not as straightforward to add the hook for this case as it was for the case of when WordPress is the SSO provider.

I’ll be looking at the SSO client code over the next week. If there’s anyway I can add a hook that will allow the Discourse user to be retrieved after logging in via Discourse, I will add it.

---

_[View the full topic](https://meta.discourse.org/t/accessing-discourse-user-avatar-in-wp-functions-php/95390)._
