WP Manifestindependent plugin directory
manifest / admin / wp-draftpost-age-indicator

WP Draft Age

This WordPress plugin shows how long the draft is being there in post screen. It supports every post type available.

by Dewan Imtiaz · github.com/dimtiaz/wp-draftpost-age-indicator · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/dimtiaz/wp-draftpost-age-indicator/archive/refs/heads/main.zip

Readme

=== WP Draft Age === Contributors: Dewan Imtiaz Tags: drafts, admin, posts, pages, content management Requires at least: 5.3 Tested up to: 6.5 Requires PHP: 7.0 Stable tag: 1.1.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html

Adds a colour-coded "Age" column to the Posts and Pages admin lists so you can quickly spot old, forgotten drafts.

== Description ==

WP Draft Age is a lightweight, zero-configuration plugin that helps administrators and editors quickly identify old, forgotten drafts.

It adds an Age column to the Posts and Pages list tables in the WordPress admin. For any post or page with the Draft status, the column shows a human-readable age (for example, "3 days ago") and colour-codes it by how long the draft has been sitting untouched:

  • 🟢 Green — 0–7 days
  • 🟡 Yellow — 8–30 days
  • 🟠 Orange — 31–90 days
  • 🔴 Red — 90+ days

Posts that are published, scheduled, trashed, or in any other status simply display an em dash ("—").

It also adds a "Drafts by Post Type" dashboard widget that shows, at a glance, how many drafts exist for each post type. Every entry links straight to that post type's filtered draft list so you can jump in and tidy up.

Highlights

  • Lightweight and dependency-free.
  • No settings page — activate and go.
  • No tracking, no external requests, no custom database tables.
  • No additional database queries; the age is calculated from the post already on screen.
  • Accessible — meaning is not conveyed by colour alone; each entry carries a screen-reader label.
  • Translation-ready.
  • Written to the WordPress Coding Standards.

== Installation ==

  1. Upload the wp-draft-age folder to the /wp-content/plugins/ directory, or install the plugin through the Plugins > Add New screen in your WordPress dashboard.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Go to Posts or Pages. Any draft will now show its age in the new Age column.

There is nothing to configure.

== Frequently Asked Questions ==

= Does this plugin add any database tables or options? =

No. WP Draft Age stores nothing. It reads the post you are already viewing in the list table and calculates the age on the fly.

= Does it slow down my admin? =

No. It performs no extra database queries and only loads a tiny stylesheet on the Posts and Pages list screens.

= Why do published or scheduled posts show a dash? =

By design. The plugin is meant to surface forgotten drafts, so only drafts show an age. Everything else displays "—".

= Does it work with custom post types? =

Version 1.0 targets the built-in Posts and Pages list tables. Custom post type support is on the roadmap for a future release.

= Is the plugin accessible? =

Yes. Colour is used as an enhancement only. Each aged draft includes a hidden text label (for example, "Old draft") for screen readers, and the coloured badge also uses a border and bold text as non-colour cues.

= Can I sort or filter by age? =

Not in version 1.0. Sorting and filtering are planned for a future release.

== Screenshots ==

  1. Posts list with the colour-coded Age column.
  2. Pages list with the colour-coded Age column.
  3. Colour examples showing green, yellow, orange, and red draft ages.

== Changelog ==

= 1.1.0 =

  • New: "Drafts by Post Type" dashboard widget with per-post-type draft counts, each linked to the filtered draft list.
  • Improved: the Age column now shows an exact calendar breakdown (e.g. "1 year, 3 months") instead of a single rounded unit.
  • Fixed: drafts that had never been published (blank GMT date) no longer showed their age — the column now reads the local post date, so all drafts display correctly.
  • Changed: minimum WordPress version is now 5.3.

= 1.0.0 =

  • Initial release.
  • Adds an Age column to the Posts and Pages admin lists.
  • Human-readable, colour-coded age for Draft posts using human_time_diff().
  • Accessible, translation-ready, and dependency-free.

== Upgrade Notice ==

= 1.1.0 = Adds a "Drafts by Post Type" dashboard widget, exact age breakdowns, and fixes drafts that never displayed an age.

= 1.0.0 = Initial release of WP Draft Age.

Read the full README on GitHub →