0

How to limit number of WP site admins to i.e. 2. So if current WP admin wants to create new admin, old account need to be deleted. (this can be added even on database level)

I need this feature to prevent creating more admin accounts and attacks connected with this kind of actions.

Is there any plugin what supports this kind of limitations or I need custom code? Or maybe simple database procedure need to be added?

  • 2
    If an attacker has sufficient access to otherwise create admin accounts, they are going to be able to get around anything that you do. At that point you’re already compromised. Once an attacker has that level of access, putting little restrictions on things like this isn’t going to save you. I’d focus on the fundamentals of you’re sites security before trying anything like this. – Jacob Peattie Oct 16 at 6:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.