AI助手支持GPT4.0
Custom post type posts are left in the database if a post type is no longer registered (in use).
如果不再注册(使用中)帖子类型,则将自定义帖子类型帖子保留在数据库中。 p>
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.
如果这些帖子在删除后未被插件/主题本身清除,则将永久保留在数据库中。 p>
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.
有很多插件可以清理您的数据库(通过删除修订版,草稿等),但是我还没有找到可以清除未使用的帖子类型帖子的插件。 p>
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.
该插件的设置页面位于wp-admin>工具>自定义帖子类型清除。 p>
Note: The proper WordPress delete function wp_delete_post
注意 strong>:正确的WordPress删除功能 wp_delete_post is used instead of running a direct MySQL query to delete the posts.用于代替运行直接的MySQL查询来删除帖子。This way all associated post data (comments, post meta etc.) are also deleted from the database.这样,所有关联的帖子数据(评论,帖子元等)也将从数据库中删除。 p>Since version 1.2.0 you can re-register unused custom post types for a limited period of time.从1.2.0版开始,您可以在有限的时间内重新注册未使用的自定义帖子类型。This allows you to inspect and delete the posts like you would normally (in the wp-admin).这样一来,您可以像平常一样(在wp-admin中)检查和删除帖子。 p>
is used instead of running a direct MySQL query to delete the posts.
用于代替运行直接的MySQL查询来删除帖子。
This way all associated post data (comments, post meta etc.) are also deleted from the database.
这样,所有关联的帖子数据(评论,帖子元等)也将从数据库中删除。 p>
Since version 1.2.0 you can re-register unused custom post types for a limited period of time.
从1.2.0版开始,您可以在有限的时间内重新注册未使用的自定义帖子类型。
This allows you to inspect and delete the posts like you would normally (in the wp-admin).
这样一来,您可以像平常一样(在wp-admin中)检查和删除帖子。 p>
Follow these instructions to install the plugin.
按照以下说明安装插件。 p>
ol>
原文出处:http://www.sanshu.cn/a/9689.html
群主管理都是支付大佬