# 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:** [March 6, 2017, 7:35pm 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:** 11

<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:** [March 7, 2017, 6:32pm UTC](https://meta.discourse.org/t/create-user-automatically-in-discourse-when-they-sign-up-in-wordpress/58494/11 "2017-03-07T18:32:02Z")

</div>

> [@lkramer](#):
>
> Is there an admin setting to turn off the feature that requires people to activate their brand new Discourse account via an email link?

There isn’t an admin setting, but you can turn it off with a bit of code.

If a site is using the default WordPress login setup, then users shouldn’t be having to reverify their email with Discourse. For sites that are logging users in differently, for example through a front-end login form, verification is required.

There are some security risks in allowing users to create a Discourse account through SSO without first confirming that they control the email address. The biggest risk that I can see is if there are accounts that exist on your Discourse site that are not yet associated with a WordPress user id. For example, if there is an admin account on a Discourse site with the email address `admin@example.com` that has not been logged into through SSO, a user could create an account through WordPress with the unverified email address `admin@example.com` and then login to Discourse as that admin user.

To completely remove the `require_activation` flag, add something like this to your theme’s `functions.php` file.

```plaintext
// Replace 'my_prefix' with your site prefix.

add_filter( 'discourse_email_verification', 'my_prefix_discourse_email_verification' );
function my_prefix_discourse_email_verification( $require_activation, $user_id ) {
    return false;
}

```

---

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