Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

Preventing deletion of admin users when deleting members

Simple Membership Plugin › Forums › Simple Membership Plugin › Preventing deletion of admin users when deleting members

  • This topic has 7 replies, 3 voices, and was last updated 10 years, 7 months ago by mbrsolution.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • April 20, 2016 at 9:23 pm #6549
    r_ag
    Participant

    Hi,

    Is there a way to prevent the deletion of the WP admin user account when you delete Simple Membership members that are WP admin users?

    While testing I managed to delete the only admin user account and had to make a new one with phpMyAdmin to get access to the site. Since I am working on a web app where the client is going to handle member administration I see support calls in my future if it is that easy to delete admin accounts…

    Roger

    April 20, 2016 at 11:22 pm #6552
    mbrsolution
    Moderator

    Hi, currently that feature is not available in the plugin. Your best option for now is not to allow account deletion if you are going to allow the creation of admin accounts.

    April 21, 2016 at 6:45 am #6553
    r_ag
    Participant

    Members are not supposed to be able to delete their own accounts, nor will they be admins. (Allow account deletion is not checked in settings.) The client company will administer all registration/deletion from the backend. However, if the client adds all users to the member list (via the WP User import addon) or for some other reason adds an admin user as a member, it will also be possible to delete all accounts, admins included, thus loosing access to the backend. I therefore think it still should be at least a warning if one is trying delete members with admin user accounts, most preferably an option to disallow deletion. (or deleting only the member, not the admin user)

    As far as I can see the safest option now is to instruct the client to never delete members and instead tell them to set status to inactive. But since I have no control of who will do the administration and what training the client gives new administrators, it would be nice to be able to be 100% sure that admin accounts can not be deleted by accident.

    April 21, 2016 at 8:04 am #6554
    mbrsolution
    Moderator

    Thank you for providing the extra information which will help the developers further investigate your request.

    Kind regards

    April 21, 2016 at 9:06 am #6556
    admin
    Keymaster

    There should be a check for this in the plugin to prevent this. I will check it and get back to you.

    April 23, 2016 at 3:00 am #6590
    admin
    Keymaster

    Are you using a custom role management plugin by any chance?

    April 24, 2016 at 10:58 pm #6639
    r_ag
    Participant

    Hm… It looks like that can have something to do with it. Before testing Simple Membership I testet a few e-learning plugins which had custom role management. I deleted the plugins before testing Simple Membership, but that did not remove the custom roles they added.

    I tried installing Simple Membership and the WP User Import addon on a fresh WP install and there everything seems to work like it should (that is, not deleting admin users).

    April 24, 2016 at 11:12 pm #6644
    mbrsolution
    Moderator

    You will have to investigate further and make sure you remove any custom roles added by the other plugins or else Simple Membership plugin will not function correctly.

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Log In

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy