Created
July 31, 2018 04:19
-
-
Save danieljwonder/1f30f61e7fa968804ee8199e832e7531 to your computer and use it in GitHub Desktop.
Disable Discourse account activation email for sites with WP Discourse SSO
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| * Disable Discourse account activation email for sites with WP Discourse SSO | |
| */ | |
| add_filter( 'discourse_email_verification', 'wpdc_sso_disable_email_verification' ); | |
| function wpdc_sso_disable_email_verification() { | |
| return false; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment