نعم، اطلع على الكود في المنشور الثاني في هذا الموضوع: How to prevent some WP users from being able to login to Discourse.