That’s great it’s working! For the code snippet you posted, it’s important that the
/* some condition */
comment is replaced with a condition. If you are going to bypass email verification for all users, you could leave out the condition and just return
false from the function. From your description of how users are being registered on your site, it seems that would be safe for your case.
I’m a little puzzled about what has gone wrong here. If no users were able to login, it would seem that your site’s user IDs have all been changed. Could something like that happen on WP Engine when updating a site from its staging environment?