=== Delete Own Admin Account === Contributors: switcorp,ivicad Donate link: https://paypal.me/winterit Tags: admin,delete,remove,administrator,own Requires at least: 6.1 Tested up to: 6.8 Stable tag: 1.0.1 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Allows administrators to safely delete their own account with proper security checks and post reassignment. == Description == This plugin adds a "Delete Own Account" option for administrators in the WordPress users list. The delete link appears only for the current administrator's own account row, styled with red text similar to WordPress default delete links. Key features: * Secure deletion with WordPress nonce verification * Safety check to prevent deletion of the last administrator * Automatic reassignment of posts to another administrator * Confirmation dialog before deletion * Immediate logout and redirect after successful deletion ## Usage Once activated, administrators will see a red "Delete Own Account" link in their own user row in the Users list (Dashboard -> Users). Clicking the link will show a confirmation dialog, and upon confirmation, the account will be deleted with all posts reassigned to another administrator. == Installation == Very easy, you can install it manually: 1. Upload the 'delete-own-administrator-account' folder to the '/wp-content/plugins/' directory 2. Activate the plugin from the 'Plugins' menu in WordPress. == Frequently Asked Questions == = Can administrators delete their own accounts? = Yes, but only if there are other administrators on the site. The plugin prevents deletion of the last administrator account. = What happens to posts when an admin deletes their account? = All posts are automatically reassigned to another administrator on the site. = Is the deletion secure? = Yes, the plugin uses WordPress nonce verification and multiple security checks to ensure safe deletion. == Screenshots == 1. Delete Own Account link in Users list for administrators == Changelog == = 1.0.0 = * Initial version * Added delete own account functionality for administrators * Implemented security nonce verification * Added safety checks for last administrator prevention * Automatic post reassignment on deletion