# Integrate Discourse with MemberMouse

**URL:** <https://meta.discourse.org/t/integrate-discourse-with-membermouse/79636>\
**Category:** Administrators\
**Tags:** wordpress, how-to\
**Created:** [2월 2, 2018, 3:10오후 UTC](https://meta.discourse.org/t/integrate-discourse-with-membermouse/79636 "2018-02-02T15:10:00Z")\
**Posts on this page:** 1\
**Showing post:** 12

<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:** [2월 21, 2018, 1:18오전 UTC](https://meta.discourse.org/t/integrate-discourse-with-membermouse/79636/12 "2018-02-21T01:18:37Z")

</div>

> [@pfaffman](#):
>
> This wasn’t working for me, and I just upgraded, and now there is no create\_discourse\_user, it seems.

It’s still there: [https://github.com/discourse/wp-discourse/blob/master/lib/utilities.php#L306](https://github.com/discourse/wp-discourse/blob/master/lib/utilities.php#L306)

You need to call it with the namespace `WPDiscourse\Utilities\Utilities::create_discourse_user( $user )`

There is also a [sync\_sso\_record](https://github.com/discourse/wp-discourse/blob/master/lib/utilities.php#L545) function that would be better to use if you are able to. It takes an array of sso parameters as an argument. You can get them from the `get_sso_params` function.

I’m in the process of cleaning up this file. I won’t remove any functions that I’ve posted about on meta. If I break anything, let me know.

Edit: I read the OP more closely. I hadn’t realized it was editing the plugin’s code. That part will be broken by the most recent update. It would be better to call either the `create_discourse_user` or the `sync_sso_record` function from `WPDiscourse\Utilities`, and add the `my_mm_account_added` hook to your `functions.php` file or a separate plugin.

---

_[View the full topic](https://meta.discourse.org/t/integrate-discourse-with-membermouse/79636)._
