# Disable account activation email with SSO

**URL:** <https://meta.discourse.org/t/disable-account-activation-email-with-sso/69859>\
**Category:** WordPress\
**Created:** [12 Settembre 2017, 2:03am UTC](https://meta.discourse.org/t/disable-account-activation-email-with-sso/69859 "2017-09-12T02:03:58Z")\
**Posts on this page:** 1\
**Showing post:** 14

<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:** [7 Giugno 2018, 5:23pm UTC](https://meta.discourse.org/t/disable-account-activation-email-with-sso/69859/14 "2018-06-07T17:23:35Z")

</div>

> [@Francois\_Douville](#):
>
> Is this code is what I need to disable account activation?
> 
> If yes, I don’t know how to do this. Could you help me?

Yes, that code will disable the account activation email for all users. It sounds as though that is safe to do for your case.

Here is a simplified version of the code that will disable the account activation email for all users:

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

	return false;
}

```

This code needs to be added to either a WordPress plugin, or to your theme’s `functions.php` file. Adding it to the `functions.php` file is the easiest way to do it. If you are editing that file on a live site, you should access the site’s file system through its cPanel, save a backup of `functions.php` and then copy and paste the code into the original file. If everything works as expected, delete the backup file.

---

_[View the full topic](https://meta.discourse.org/t/disable-account-activation-email-with-sso/69859)._
