# Create user automatically in Discourse when they sign up in Wordpress?

**URL:** <https://meta.discourse.org/t/create-user-automatically-in-discourse-when-they-sign-up-in-wordpress/58494>\
**Category:** WordPress\
**Created:** [6 مارس 2017، 7:35م UTC](https://meta.discourse.org/t/create-user-automatically-in-discourse-when-they-sign-up-in-wordpress/58494 "2017-03-06T19:35:34Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [6 مارس 2017، 9:27م UTC](https://meta.discourse.org/t/create-user-automatically-in-discourse-when-they-sign-up-in-wordpress/58494/5 "2017-03-06T21:27:32Z")

</div>

This could be added to the plugin. I can think of two ways of approaching it:

- automatically create a Discourse user when a WordPress user is created

or

- adding a WordPress shortcode that would create a login link to the forum. The link would only appear for logged in WordPress users who do not yet have an account on Discourse. The text could be set to something like ‘Join Our Forum’. When a user clicked on the link, a Discourse user would be created for them and they could be either redirected back to WordPress, or to a specific page on Discourse.

Either approach would work. The second one would be a little easier to implement - it wouldn’t require any changes to the plugin’s existing code.

---

_[View the full topic](https://meta.discourse.org/t/create-user-automatically-in-discourse-when-they-sign-up-in-wordpress/58494)._
