はい、ご要望の機能を実装する方法については、以下のトピックで説明されています:https://meta.discourse.org/t/how-to-prevent-some-wp-users-from-being-able-to-login-to-discourse/93234。トピック内の 2 つ目の投稿には、利用できる 2 つのサンプル関数が記載されています。コード例に含まれている /* Some condition that returns true if the user doesn't meet the membership requirement */ というコメントを、実際の条件判定コードに置き換える必要があります。