Automatically cleans up auto-drafts and detects duplicate posts in WordPress to keep your database clean and efficient.
Version: 1.4.0
Author: Mainul Kabir Aion
License: GPL2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Requires at least: 5.0
Requires PHP: 7.0
Tested up to: 6.5
Stable tag: 1.4.0
The Duplicate and Auto Draft Cleaner plugin helps maintain a clean and efficient WordPress database by automatically removing auto-drafts and identifying/deleting duplicate posts and pages.
Key Features:
== Installation ==
== Usage ==
After activation, an “Auto Draft & Duplicate Cleaner” sub-menu item will appear under the Settings menu on your WordPress Dashboard. Under this sub-menu, you can access:
== Settings Options ==
== Changelog ==
= 1.4.0 =
schedule_auto_draft_cleanup
and schedule_auto_duplicates_cleanup
functions to support the 5-minute cron job.= 1.3.1 =
= 1.3.0 =
= 1.2.4 =
render_duplicates_tab
by fixing count argument.= 1.2.3 =
render_settings_tab
by properly using in_array
.= 1.2.2 =
* Fixed the in_array
error in render_settings_tab
* Improved code security.
= 1.2.1 =
* Fixed the Post Type filter on Draft tab.
* Resolved critical error on the duplicate tab.
* Fixed Post Status not showing on Settings page.
* Resolved Automation settings not showing.
= 1.2.0 =
* Added “Filter by Time” on the drafts tab with “Most Recent” option
* Added multi select filter for post type on draft tab.
* Added multi select filter for post type and post status on the duplicate tab.
* Added multi select checkboxes for post types on settings.
* Added multi select dropdown for post status on settings.
* Automation settings are visible now with more automation frequency options.
= 1.1.0 =
* Added Draft listing to the Drafts tab with columns for title, creation date, and post type.
* Added draft count on the draft page.
* Added date filter with several options to filter drafts.
* Added checkboxes for selecting and deleting drafts from the list.
* Added a dropdown for “Delete Permanently” or “Move to Trash”
* Added more options to duplicate remover automation frequency: 5 minutes, hourly, twice a day, daily, weekly, and monthly.
* Retain Draft Original Titles when moving to trash.
* Improved the efficiency and readability of the code.
* Added comments for better understanding.
* Sanitized input data.
= 1.0.0 =
* Initial Release
== Frequently Asked Questions ==
Q: Will this plugin delete posts or pages permanently?
A: Yes, if you choose “Delete Permanently” as your deletion strategy, the drafts and duplicate posts will be deleted permanently. By default, the duplicates are deleted permanently and drafts are moved to the trash. Be careful when selecting options and deleting posts.
Q: Can I schedule automated duplicate removal?
A: Yes, under the “Settings” tab, you can enable the automation and set a frequency for automatic duplicate removal.
Q: What happens if I change my theme?
A: The default styles will be lost. For this reason, the plugin is using its own stylesheet.
Q: The plugin isn’t working after I updated it. What should I do?
A: If the plugin is not working after updating to a new version, please deactivate and reactivate it.
Q: Where are the settings stored?
A: The settings are stored in the wp_options
database table.
== Screenshots ==
== Credits ==
Plugin developed by Mainul Kabir Aion.