# Disable account activation email with SSO

**URL:** <https://meta.discourse.org/t/disable-account-activation-email-with-sso/69859>\
**Category:** WordPress\
**Created:** [12. September 2017 um 02:03 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:** 13

<div class="post-metadata">

**Author:** ![Francois\_Douville](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/francois_douville/32/94221_2.png) [@Francois\_Douville](https://meta.discourse.org/u/Francois_Douville)\
**Post date:** [6. Juni 2018 um 20:23 UTC](https://meta.discourse.org/t/disable-account-activation-email-with-sso/69859/13 "2018-06-06T20:23:48Z")

</div>

My WP is SSO provider. I use the plugin Activemember360 with a custom registration page. When they register, they only type name and email. Their password is send to their email. So that’s a way to verify their email?

After that, they also have to verify their email with Discourse. It’s not useful.

> [@simon](#):
>
> Adding something like this to your theme’s `functions.php` file should work. Ideally, you should only be doing this if you have verified the email address in some way through WordPress.
> 
> ```plaintext
> // Replace 'my_prefix' with your site prefix.
> 
> add_filter( 'discourse_email_verification', 'my_prefix_discourse_email_verification', 10, 2 );
> function my_prefix_discourse_email_verification( $require_activation, $user_id ) {
> // Check that the user has a valid email address, or just return false for all users.
> 
> return false;
> }
> 
> ```

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?

Thanks

---

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