WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by keesiemeijer v1.3.2

Custom Post Type Cleanup

Detect and delete posts from custom post types that are no longer in use

Custom Post Type Cleanup

The facts

Rating
5★ from 35
Active installs
1k+
Price
Free
Last updated
20 Apr 2024
Added
Aug 2017
Requires WP
5.9
Tested up to
WP 6.5.10
Downloads
28,209

Our analysis

AI-assisted

Custom Post Type Cleanup is a WordPress plugin designed to help you manage and remove unused custom post type entries from your database. When a custom post type is no longer registered, its associated posts can remain in the database indefinitely, potentially cluttering it. This plugin provides a straightforward method to detect and delete these unused posts, ensuring your database remains clean.

The plugin uses the standard WordPress delete function to remove posts, which also deletes all related data such as comments and post meta. Additionally, since version 1.2.0, you can temporarily re-register unused custom post types to review and manage posts before final deletion. This tool is suitable for users looking to maintain a tidy database by eliminating unnecessary entries.

Best for: This plugin is best for WordPress site owners who want to keep their database clean by removing unused custom post types.

What it does well

  • Detects and removes unused custom post type posts
  • Uses standard WordPress delete function for safe removal
  • Allows temporary re-registration of custom post types for review
  • Easy to access settings page in the WordPress admin
  • Free to use from the WordPress.org directory

Where it falls short

  • Limited information on additional features or support
  • No mention of compatibility with specific themes or plugins

Verdict

Custom Post Type Cleanup offers a useful solution for managing database clutter caused by unused custom post types. It is a practical tool for maintaining a well-organised WordPress site.

From the developer

keesiemeijer's own description of Custom Post Type Cleanup, lightly tidied.

Custom post type posts are left in the database if a post type is no longer registered (in use).

Plugins and themes can (without you knowing) use custom post types as a way to store data. These posts stay in the database forever if they’re not cleaned up by the plugin/theme itself upon deletion.

There are a lot of plugins that clean your database (by removing revisions, drafts etc.), but I haven’t found one that does a cleanup of unused post type posts.

This plugin provides an easy way to detect and remove posts from post types that are no longer in use. The settings page for this plugin is at wp-admin > Tools > Custom Post Type Cleanup.

Note: The proper WordPress delete function wp_delete_post is used instead of running a direct MySQL query to delete the posts. This way all associated post data (comments, post meta etc.) are also deleted from the database.

Since version 1.2.0 you can re-register unused custom post types for a limited period of time. This allows you to inspect and delete the posts like you would normally (in the wp-admin).

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for custom content structures.

Ad Inserter

Manage Google AdSense ads, banners, ad rotation, sticky widgets, AMP ads, ads.txt, tracking, header and footer...

Free 300k+ installs 4.9★ (2,428)
Advanced Custom Fields

ACF helps customize WordPress with powerful, professional and intuitive fields. Proudly powering over 2 millio...

Free 2M+ installs 4.5★ (1,438)
Simple Custom Post Order

Easily reorder posts, pages, custom post types, and taxonomies with intuitive drag-and-drop sorting in the Wor...

Free 300k+ installs 4.8★ (569)
WP Activity Log

The #1 user-rated activity log plugin for event logging, activity monitoring and change tracking.

Free 300k+ installs 4.7★ (488)
Custom Post Type UI

Admin UI for creating custom content types like post types and taxonomies

Free 1M+ installs 4.6★ (276)