# Problemas com logins do wp-discourse

**URL:** <https://meta.discourse.org/t/trouble-with-wp-discourse-logins/112939>\
**Category:** WordPress\
**Created:** [29 Março , 2019 15:56 UTC](https://meta.discourse.org/t/trouble-with-wp-discourse-logins/112939 "2019-03-29T15:56:45Z")\
**Posts on this page:** 1\
**Showing post:** 21

<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:** [29 Março , 2019 20:00 UTC](https://meta.discourse.org/t/trouble-with-wp-discourse-logins/112939/21 "2019-03-29T20:00:02Z")

</div>

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?

---

_[View the full topic](https://meta.discourse.org/t/trouble-with-wp-discourse-logins/112939)._
