stop login if user_status equal zero
The user_status field isn’t used by core, so you could use it for your own purposes. Although there may be side effects if WP ever decides to reuse it in the future. The authenticate filter fires before the user is authenticated. You can hook into that filter and return a WP_Error object to prevent the … Read more