=== TickTrash Bulk ===
Contributors: titandevagency
Tags: bulk delete, delete posts, cleanup, trash, post deletion
Requires at least: 5.6
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Free bulk delete and cleanup for WordPress: remove posts, comments, users, terms and metadata with preview, filters, batching and scheduling.

== Description ==

TickTrash Bulk lets you safely bulk delete posts, pages, comments, users, taxonomy terms, metadata, and more with preview, confirmation, and batch processing.

**Features:**

* **Posts** — Bulk delete posts, pages and custom post types by post type, status, published or modified date, title, content, author, taxonomy, custom fields, URL, comment count, content length (words/characters), specific post IDs, duplicate titles, and custom query
* **Comments** — Bulk delete or trash comments by status, type, author, age, and post ID
* **Users** — Bulk delete users by role, registration date, username, email, display name, and user meta. Current account and Super Admins are always protected
* **Taxonomy Terms** — Bulk delete categories, tags, and custom taxonomy terms by name, slug, description, parent, usage count, and term meta. Associated posts are never deleted
* **Metadata** — Clean up post, user, comment, and term metadata by key, value, and object filters
* **Cleanup** — Remove revisions, auto-drafts, trashed content, spam comments, orphaned metadata, and duplicate metadata (post, comment, term, and user)
* **Activity Logs** — Full audit trail of every deletion operation with filters and detail view
* **Scheduler** — Schedule recurring cleanup tasks with WordPress Cron (hourly, daily, twice daily, weekly, monthly)

**Safety features:**

* Preview matching records before any deletion
* Batch processing to avoid timeouts on large datasets
* Progress bar with real-time stats
* Permanent delete or move to trash (where applicable)
* Full nonce verification and capability checks
* Protected accounts (current user, Super Admins) can never be deleted
* Comprehensive activity logging

All features are completely free. No pro version, no locked features.

== Installation ==

1. Upload the `ticktrash-bulk` folder to `/wp-content/plugins/`.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Navigate to **TickTrash Bulk** in the admin sidebar.

== Frequently Asked Questions ==

= Is this plugin free? =
Yes. All features are free with no pro version or locked functionality.

= Does deletion happen in batches? =
Yes. Records are processed in batches of 100 by default to prevent PHP timeouts and memory issues.

= Does it support WooCommerce? =
No. WooCommerce-specific cleanup is planned for a future update and is not included in this version.

== Changelog ==

= 1.0.3 =
* Plugin renamed to TickTrash Bulk (slug: ticktrash-bulk).
* Unique `ttbulk_` prefix for all functions, classes, constants, options, database table, cron hook, AJAX actions, script handles and CSS classes.

= 1.0.1 =
* Final WordPress.org-ready release.
* Corrected LICENSE file to match the declared GPLv2-or-later license.
* Removed unused empty WooCommerce placeholder files and version-control metadata from the package.
* Updated "Tested up to" and added "Requires PHP" header.
* Added content word/character count, post ID, modified date, duplicate posts, and custom query filters for posts.
* Added taxonomy term meta filtering.
* Added monthly scheduling recurrence.
* Added duplicate metadata cleanup for post, comment, term, and user meta.
* Improved trash handling to use wp_trash_post and preserve attachments in non-permanent deletions.
* Improved scheduler reliability with time budget, excluded-ID tracking, and narrowing validation.
* Added snapshot-based deletion so the live filters cannot change after confirmation.
* Removed all development-only test data generator and test/audit scripts from the package.

= 1.0.0 =
* Initial release.
* Posts bulk deletion with post type, status, date, title, content, author, taxonomy, meta, URL, and comment count filters.
* Comments bulk deletion/trash with status, type, author, age, and post ID filters.
* Users bulk deletion with role, registration date, username, email, display name, and meta filters.
* Taxonomy terms bulk deletion with name, slug, description, parent, and usage filters.
* Metadata cleanup for post, user, comment, and term meta.
* WordPress cleanup for revisions, auto-drafts, trashed content, spam comments, and orphaned metadata.
* Activity logs with filtering and detail view.
* Scheduler with hourly, daily, twice daily, and weekly recurrence options.
* Preview, confirmation, and batch processing with progress bar.
