# Syncing login status between WordPress and Discourse, Discourse SSO provider

**URL:** <https://meta.discourse.org/t/syncing-login-status-between-wordpress-and-discourse-discourse-sso-provider/67980>\
**Category:** WordPress\
**Created:** [August 13, 2017, 7:56pm UTC](https://meta.discourse.org/t/syncing-login-status-between-wordpress-and-discourse-discourse-sso-provider/67980 "2017-08-13T19:56:09Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Lew\_Grothe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lew_grothe/32/337776_2.png) [@Lew\_Grothe](https://meta.discourse.org/u/Lew_Grothe)\
**Post date:** [July 13, 2018, 6:15pm UTC](https://meta.discourse.org/t/syncing-login-status-between-wordpress-and-discourse-discourse-sso-provider/67980/6 "2018-07-13T18:15:39Z")

</div>

Great idea - this would work.

Since logging out of discourse would call wp\_logout() (via logout\_redirect in the Discourse admin), couldn’t I just add an action on wp\_logout() for the user and not rely on the [WP Discourse](https://github.com/discourse/wp-discourse) plugin’s action hook?

Seems either way would work but we don’t expect ever to have a user logged into the WP instance in any other way…

---

_[View the full topic](https://meta.discourse.org/t/syncing-login-status-between-wordpress-and-discourse-discourse-sso-provider/67980)._
