Ad Inserter
94Manage Google AdSense ads, banners, ad rotation, sticky widgets, AMP ads, ads.txt, tracking, header and footer...
Detect and delete posts from custom post types that are no longer in use
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
Where it falls short
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.
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).
Other plugins for custom content structures.
Manage Google AdSense ads, banners, ad rotation, sticky widgets, AMP ads, ads.txt, tracking, header and footer...
ACF helps customize WordPress with powerful, professional and intuitive fields. Proudly powering over 2 millio...
Checkout Field Editor (Checkout Manager) for WooCommerce – The best WooCommerce checkout manager plugin to man...
Easily reorder posts, pages, custom post types, and taxonomies with intuitive drag-and-drop sorting in the Wor...
The #1 user-rated activity log plugin for event logging, activity monitoring and change tracking.
Admin UI for creating custom content types like post types and taxonomies