• Hi,
    I was looking for a way to disable any user account. So I tried to change the user’s role to: “No role on this site”, and as I found online, this will display: “you don’t have sufficient permissions to access this page”.(This is what I’m looking for!). However, when I change the role to “No Role On This Site”, the user can still sign in normally, and the message is not being displayed.

    Is there anything I should do to change that?
    Thanks!

Viewing 1 replies (of 1 total)
  • Moderator Tellyworth

    (@tellyworth)

    A “no role” user will see the message Sorry, you are not allowed to access this page if they try to access anything in wp-admin, or anything that is not generally available to a logged-out user.

    There are some plugins that might do what you want, such as Lock User Account.

Viewing 1 replies (of 1 total)
  • The topic ‘Changing user’s role to “No Role for This Site”’ is closed to new replies.