diff --git a/includes/Free/Simple_Login.php b/includes/Free/Simple_Login.php index bb4270886..a5034ed21 100644 --- a/includes/Free/Simple_Login.php +++ b/includes/Free/Simple_Login.php @@ -473,6 +473,16 @@ public function process_login() { return; } + + $wpuf_user_status = get_user_meta( $user->ID, 'wpuf_user_status', true ); + + if ( 'approved' !== $wpuf_user_status ) { + $message = __( 'You can\'t login until an administrator manually approve your account.', 'wp-user-frontend' ); + + $this->login_errors[] = $message; + + return; + } } else { $creds['user_login'] = $log; }