Created
September 3, 2018 06:55
-
-
Save DimaMinka/daa6700144d7884ca1e32e280d160854 to your computer and use it in GitHub Desktop.
Disable email requirements on new WordPress user registration - register_new_user
This file contains 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 | |
add_filter( 'registration_errors', function( $errors ){ return new WP_Error(); }, 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment