Title: Custom Post Type Cleanup
Author: keesiemeijer
Published: <strong>اگست 19, 2017</strong>
Last modified: اپریل 20, 2024

---

پلگ انز تلاش کریں

![](https://ps.w.org/custom-post-type-cleanup/assets/banner-772x250.jpg?rev=1716260)

یہ پلگ ان **ورڈپریس کے تازہ ترین 3 ریلیزوں کے ساتھ ٹیسٹ نہیں کیا گیا ہے**۔ اب یہ
برقرار نہیں رکھا جا سکتا یا معاونت نہیں کی جا سکتی اور اس کو ورڈپریس کے تازہ ترین
ورژنز کے ساتھ استعمال کیے جانے پر مطابقت کے مسائل ہو سکتے ہیں۔

![](https://ps.w.org/custom-post-type-cleanup/assets/icon.svg?rev=1716282)

# Custom Post Type Cleanup

 منجانب [keesiemeijer](https://profiles.wordpress.org/keesiemeijer/)

[ڈاؤن لوڈ کریں](https://downloads.wordpress.org/plugin/custom-post-type-cleanup.1.3.2.zip)

 * [تفصیلات](https://ur.wordpress.org/plugins/custom-post-type-cleanup/#description)
 * [جائزے](https://ur.wordpress.org/plugins/custom-post-type-cleanup/#reviews)
 *  [انسٹالیشن](https://ur.wordpress.org/plugins/custom-post-type-cleanup/#installation)
 * [ڈیولپمنٹ](https://ur.wordpress.org/plugins/custom-post-type-cleanup/#developers)

 [معاونت](https://wordpress.org/support/plugin/custom-post-type-cleanup/)

## تفصیل

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](https://developer.wordpress.org/reference/functions/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).

## اسکرین شاٹس

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

## انسٹالیشن

Follow these instructions to install the plugin.

 1. In your WordPress admin panel, go to Plugins > New Plugin, search for "custom post
    type cleanup” and click "Install now”.
 2. Alternatively, download the plugin and upload the contents of custom-post-type-
    cleanup.zip to your plugins directory, which usually is /wp-content/plugins/.
 3. Activate the plugin
 4. Go to wp-admin > Tools > Custom Post Type Cleanup and see if there are unused custom
    post type posts in the database.

## جائزے

![](https://secure.gravatar.com/avatar/1d442bc94c6f4198991d0886f34c9d6482710d5a15ad5e358ef802e2a41818be?
s=60&d=retro&r=g)

### 󠀁[I’m glad someone created this plugin](https://wordpress.org/support/topic/im-glad-someone-created-this-plugin/)󠁿

 [Slava Abakumov](https://profiles.wordpress.org/slaffik/) نومبر 29, 2024

So I didn’t have to 🙂 Awesome little handy tool to clean up old sites from obsolete
CPTs and their post meta. I wish it also supported custom taxonomies that were registered
for those obsolete CPTs.

![](https://secure.gravatar.com/avatar/0cb3afdfe9a084143b7b22bdf4d60be62943197ae9cb874ff48e90aff691b24e?
s=60&d=retro&r=g)

### 󠀁[Great plugin](https://wordpress.org/support/topic/great-plugin-38949/)󠁿

 [designituk](https://profiles.wordpress.org/designituk/) مئی 23, 2024

Great plugin works perfectly

![](https://secure.gravatar.com/avatar/7b3bd83d9e1e29a7a296c984cd922f8202c3107783ed11261b663e59fbb033a1?
s=60&d=retro&r=g)

### 󠀁[perfect! just what was needed 🙏](https://wordpress.org/support/topic/perfect-just-what-was-needed-%f0%9f%99%8f/)󠁿

 [rothschild86](https://profiles.wordpress.org/rothschild86/) مئی 16, 2024

Thank you!

![](https://secure.gravatar.com/avatar/e412a29b85dc75c051474da6d04b858f462552f8855bc584eeb920dfb069c73c?
s=60&d=retro&r=g)

### 󠀁[Very simple and working…](https://wordpress.org/support/topic/very-simple-and-working/)󠁿

 [tenserd](https://profiles.wordpress.org/tenserd/) مئی 7, 2024

Its a really simple to use plugin and working right out of the box. A nice feature
would be (if that is possible at all) to clean up abandoned taxonomies, too. Thx
for this nice plugin!

![](https://secure.gravatar.com/avatar/5999123009d2c98889f3170c93c4cd60b40ce8d7c0eccc06f46e24e27bf82e06?
s=60&d=retro&r=g)

### 󠀁[An amazing plugin for Custom Post Types](https://wordpress.org/support/topic/an-amazing-plugin-for-custom-post-types/)󠁿

 [Manou Allou](https://profiles.wordpress.org/manouallou/) اپریل 23, 2024

What a useful, little plugin! It helps clean up the database and keep it clean from
old and obsolete CPTs. Bravo to the developer who also swiftly updated it to the
latest version shortly after my support request. What else can you ask for?

![](https://secure.gravatar.com/avatar/4c90d9eb6a198f4489b043c90df64fbc5ab0ad949aa8642ae9e117a7beb17e39?
s=60&d=retro&r=g)

### 󠀁[It worked for me too](https://wordpress.org/support/topic/it-worked-for-me-too/)󠁿

 [nene](https://profiles.wordpress.org/wpdreamer/) مئی 14, 2023

Worked also for me today, hope it gets updates and keeps working, really usefull
plugin.

 [ تمام 35 جائزے پڑھیں ](https://wordpress.org/support/plugin/custom-post-type-cleanup/reviews/)

## شراکت دار اور ڈیویلپرز

“Custom Post Type Cleanup” اوپن سورس سافٹ ویئر ہے۔ مندرجہ ذیل لوگوں نے اس پلگ ان
میں حصہ لیا:

شراکت دار

 *   [ keesiemeijer ](https://profiles.wordpress.org/keesiemeijer/)

“Custom Post Type Cleanup” کا 1 زبان میں ترجمہ کیا گیا ہے۔ تعاون کے لیے [مترجمین](https://translate.wordpress.org/projects/wp-plugins/custom-post-type-cleanup/contributors)
کا شکریہ۔

[“Custom Post Type Cleanup” کا اپنی زبان میں ترجمہ کریں۔](https://translate.wordpress.org/projects/wp-plugins/custom-post-type-cleanup)

### ڈویلپمینٹ میں دلچسپی ہے؟

[کوڈ براؤز کریں](https://plugins.trac.wordpress.org/browser/custom-post-type-cleanup/)،
[ایس این وی ریپوزیٹری](https://plugins.svn.wordpress.org/custom-post-type-cleanup/)
کو چیک کریں یا [ڈویلپمینٹ لاگ](https://plugins.trac.wordpress.org/log/custom-post-type-cleanup/)
کو سبسکرائب کریں بذریعہ [آر ایس ایس](https://plugins.trac.wordpress.org/log/custom-post-type-cleanup/?limit=100&mode=stop_on_copy&format=rss)۔

## چینج لاگ

#### 1.3.2

 * Tested plugin to WP 6.5 on newer PHP versions.

#### 1.3.0

 * Add batch size option to admin form.

#### 1.2.0

 * Add ability to re-register unused custom post types.

## میٹا

 *  Version **1.3.2**
 *  Last updated **2 سال پہلے**
 *  Active installations **1,000+**
 *  WordPress version ** 5.9 یا اس سے جدید **
 *  Tested up to **6.5.8**
 *  Languages
 * [Dutch](https://nl.wordpress.org/plugins/custom-post-type-cleanup/) اور [English (US)](https://wordpress.org/plugins/custom-post-type-cleanup/).
 *  [اپنی زبان میں ترجمہ کریں](https://translate.wordpress.org/projects/wp-plugins/custom-post-type-cleanup)
 *  [اعلی درجے کا منظر](https://ur.wordpress.org/plugins/custom-post-type-cleanup/advanced/)

## درجہ بندیاں

 5 out of 5 stars.

 *  [  35 5-star reviews     ](https://wordpress.org/support/plugin/custom-post-type-cleanup/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/custom-post-type-cleanup/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/custom-post-type-cleanup/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/custom-post-type-cleanup/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/custom-post-type-cleanup/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/custom-post-type-cleanup/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/custom-post-type-cleanup/reviews/)

## شراکت دار

 *   [ keesiemeijer ](https://profiles.wordpress.org/keesiemeijer/)

## معاونت

کچھ کہنا ہے؟ مدد چاہیے؟

 [معاونتی فورم دیکھیں](https://wordpress.org/support/plugin/custom-post-type-cleanup/)