# Trilobita Post Pruner

A WordPress plugin that helps admins identify and manage posts by age. View published posts grouped by how old they are — 1, 2, 3, 4, or 5+ years — and edit, change status, or trash them from one screen.

**Author:** [Trilobita](https://trilobita.co.uk)
**WordPress.org:** coming soon
**License:** GPL v2 or later

---

## Features

- Posts listed by age bucket: 1yr, 2yr, 3yr, 4yr, 5yr+
- Sort by created date or last modified date
- Abandoned post detection (created vs modified date diverge significantly)
- Row actions: edit, trash, set to draft, set to private
- No permanent deletion — trash only

## Requirements

- WordPress 5.8+
- PHP 7.4+

## Installation

1. Upload the plugin to `wp-content/plugins/post-pruner/`
2. Activate via **Plugins > Installed Plugins**
3. Navigate to **Posts > Post Pruner**

---

## Release workflow

### Create a release

1. Bump version in `post-pruner.php` and `readme.txt`
2. Add a `## [X.Y.Z] - YYYY-MM-DD` entry to `CHANGELOG.md`
3. Commit, then push a tag: `git tag v1.0.0 && git push origin v1.0.0`
4. `release.yml` fires automatically — builds the ZIP and creates a GitHub Release with notes from `CHANGELOG.md`

### Deploy to WordPress.org

1. Download the ZIP from the GitHub Release and test on a fresh WordPress site
2. When satisfied: **GitHub → Actions → Deploy to WordPress.org → Run workflow**
3. Enter the version number (e.g. `1.0.0`) and confirm

---

## Pro version

A Pro version is planned. See [PRO.md](PRO.md) for the planned feature split.
