=== Factory Reset === Contributors: ankitrawat Tags: reset, database, clean, restore, factoryreset Requires at least: 5.0 Tested up to: 6.7 Requires PHP: 7.4 Stable tag: 1.2 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Author URI: https://ankitrawat.com Plugin URI: https://ankitrawat.com/factory-reset-plugin/ A WordPress plugin to reset your site to its initial state. Deletes all data, plugins, themes, and custom files except for this plugin. == Description == Factory Reset allows you to reset your WordPress site to a fresh installation state. This tool is helpful for developers, testers, or anyone who needs to quickly clean their WordPress environment without reinstalling it. The plugin deletes all database entries, custom tables, media files, plugins, themes, and more. The only exceptions are the current admin user and this plugin itself. ### Features: - Deletes all posts, pages, and custom post types. - Removes comments and media files. - Deletes all users except the current admin user. - Cleans up custom database tables with the `wp_` prefix. - Deletes all plugins and themes except this plugin. - Removes all files in the `wp-content/uploads` folder. - Resets WordPress settings to their defaults. ### Safe for Admin: After the reset, the current admin user is preserved, and basic WordPress settings like the site URL remain intact. == Installation == 1. Upload the `factory-reset-plugin` folder to the `/wp-content/plugins/` directory. 2. Activate the plugin through the 'Plugins' menu in WordPress. 3. Navigate to **Tools > Factory Reset** in the WordPress admin menu. == Usage == 1. Go to the **Tools > Factory Reset** page. 2. Read the warning message carefully. 3. Click the **Reset Site** button and confirm your action. 4. The site will reset to its default state, and you will be redirected to the WordPress dashboard. == Frequently Asked Questions == = What happens when I reset my site? = When you reset your site, all content, settings, themes, plugins, and media files are deleted. The plugin preserves the current admin account and itself, so you can log in again and continue using the plugin. = Can I undo a reset? = No. This action is irreversible. Please back up your site before using the plugin if you want to keep your data. = Does the plugin delete itself after reset? = No, the plugin excludes itself from the reset process so that you can continue using it. = Is this plugin safe to use? = Yes. The plugin follows WordPress coding standards and provides a confirmation step to prevent accidental resets. == Changelog == = 1.2 = * Fixed compatibility issues with Elementor and similar plugins. * Improved error handling for post and plugin deletions. * Added support for custom folder cleanup in `wp-content`. = 1.1 = * Added functionality to exclude the plugin itself from deletion. * Improved reset process efficiency. = 1.0 = * Initial release of the plugin. == Upgrade Notice == = 1.2 = Improved compatibility with third-party plugins. Update for a smoother reset experience. == License == This plugin is licensed under the GPLv2 or later. See https://www.gnu.org/licenses/gpl-2.0.html for more details. == Additional Resources == - [Official Site](https://ankitrawat.com) - [Contact Support](https://ankitrawat.com/factory-reset-plugin/)