# A couple of issues with WP Discourse and BuddyPress SSO

**URL:** <https://meta.discourse.org/t/a-couple-of-issues-with-wp-discourse-and-buddypress-sso/60581>\
**Category:** WordPress\
**Created:** [2017 年 4 月 7 日午前 4:47 UTC](https://meta.discourse.org/t/a-couple-of-issues-with-wp-discourse-and-buddypress-sso/60581 "2017-04-07T04:47:08Z")\
**Posts on this page:** 1\
**Showing post:** 17

<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:** [2017 年 4 月 10 日午後 10:00 UTC](https://meta.discourse.org/t/a-couple-of-issues-with-wp-discourse-and-buddypress-sso/60581/17 "2017-04-10T22:00:41Z")

</div>

The `functions.php` file looks right. I see from your next post that everything now is working.

The only issue that I see with the code I supplied is that the prefix `wpdc_` probably isn’t very good. The problem is that if a plugin on your site also used the function name `wpdc_activate_user` in the global namespace, your site would crash.

For most WordPress functions that I’ve added on this forum, I’ve prefixed them with `my_namespace_`, with the assumption that people will replace `my_namespace_` with _their_ namespace. I’m going to edit the code that I added to change the function’s prefix.

---

_[View the full topic](https://meta.discourse.org/t/a-couple-of-issues-with-wp-discourse-and-buddypress-sso/60581)._
