Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arunsathiya/reset-database
https://github.com/arunsathiya/reset-database
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/arunsathiya/reset-database
- Owner: arunsathiya
- Created: 2024-11-17T10:49:10.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-17T11:14:20.000Z (2 months ago)
- Last Synced: 2025-01-20T10:39:51.385Z (4 days ago)
- Language: PHP
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Reset Database
WordPress database reset tool that preserves specified plugin states after reset. This is a fork of the Reset Database plugin by MalteseSolutions.
## Features
- Resets WordPress database to default installation
- Deletes media files
- Preserves activation state of specified plugins
- Secure operation requiring admin password
- Automatic updates via Git Updater## Installation
### Via Git Updater (Recommended)
1. Install the [Git Updater](https://git-updater.com/) plugin
2. In WordPress admin, go to Settings > Git Updater > Install Plugin
3. Enter: `https://github.com/[your-username]/reset-database`
4. Click "Install Plugin"### Manual Installation
1. Download the latest release
2. Upload to your WordPress plugins directory
3. Activate the plugin
4. Access via Tools -> Reset Database## Requirements
- WordPress 4.0 or higher
- PHP 7.4 or higher
- [Git Updater](https://git-updater.com/) plugin (for automatic updates)## Configuration
To modify which plugins are preserved, edit the `$preserve_plugins` array in `reset-database.php`:
```php
private $preserve_plugins = array(
'code-snippets/code-snippets.php',
'git-updater/git-updater.php',
'repoman/repoman.php',
'reset-database-plus/reset-database.php'
);
```## Credits
Originally created by [MalteseSolutions](http://www.maltesesolutions.com)
Modified and enhanced by [arunsathiya](https://github.com/arunsathiya)## License
GPLv2 or later