# How to Deactivate the Discourse Activation Email

**URL:** https://meta.discourse.org/t/how-to-deactivate-the-discourse-activation-email/85379
**Category:** WordPress
**Created:** [15.Апрель.2018 16:11:34 UTC](https://meta.discourse.org/t/how-to-deactivate-the-discourse-activation-email/85379 "2018-04-15T16:11:34Z")
**Posts on this page:** 1
**Showing post:** 3

<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: [15.Апрель.2018 17:11:35 UTC](https://meta.discourse.org/t/how-to-deactivate-the-discourse-activation-email/85379/3 "2018-04-15T17:11:35Z")

</div>

Unless the default WordPress New User Notification email is sent as a part of your WordPress registration process, the plugin sets the SSO parameter `require_activation` to `true`. There is a hook that you can use to bypass this. The hook is called `discourse_email_verification`. It passes two parameters:

- `$require_activation` - whether or not the email address has been validated by WordPress
- `$user` - the WordPress user object

If you want to disable email validation for all users, then you don’t need to use the parameters. You can add something like this to your theme’s `functions.php` file or a plugin:

**Note: don’t use this unless you know that your user’s email addresses are valid.**

```plaintext
add_filter( 'discourse_email_verification', 'wpdc_custom_disable_email_verification' );
function wpdc_custom_disable_email_verification() {

    return false;
}

```

---

_[View the full topic](https://meta.discourse.org/t/how-to-deactivate-the-discourse-activation-email/85379)._
