跳到内容

Custom Post Type Cleanup

v1.3.2

keesiemeijer · 2017年8月19日 上架

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

正在使用
1,000+
评分
5.0 / 5
累计下载
2.9 万
最近更新
2024年4月20日
35 条评价需要 WordPress 5.9+已测试到 6.5.15

贡献者

截图

Plugin page
Plugin page
Plugin page after re-registering unused custom post types.
Plugin page after re-registering unused custom post types.
Plugin page after cleaning up all unused post type posts
Plugin page after cleaning up all unused post type posts

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).

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums