A couple of issues with WP Discourse and BuddyPress SSO

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.