WordPress.org

Ready to get started?Download WordPress

Forums

User Role Editor
Create role with no rights (4 posts)

  1. yarink
    Member
    Posted 9 months ago #

    Hello,
    I need to create a role which will prevent a user from being able to login. How can I accomplish that? I need to keep their login information and profile data but block them from logging in.
    Thanks!

    http://wordpress.org/plugins/user-role-editor/

  2. Vladimir Garagulya
    Member
    Plugin Author

    Posted 9 months ago #

    Hello,

    You may create empty role without capabilities for such users and stop on that. Or add a few lines of code to your theme in order to make this blocking more "user-friendly". Read this post for the details:
    http://role-editor.com/block-user-login/

    Regards,
    Vladimir.

  3. yarink
    Member
    Posted 9 months ago #

    Great! That works perfectly. How can I block multiple roles?
    Thanks!

  4. Vladimir Garagulya
    Member
    Plugin Author

    Posted 9 months ago #

    Hi,

    I order to block multiple roles you may use the updated code from the end of the same post
    http://role-editor.com/block-user-login/

    Regards,
    Vladimir.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags