Title: CPT Toggle &#8211; Disable Custom Post Types
Author: DesignStack
Published: <strong>8 ກັນຍາ 2025</strong>
Last modified: 8 ກັນຍາ 2025

---

ຄົ້ນຫາປລັກອິນ

ປລັກອິນນີ້ **ຍັງບໍ່ທັນໄດ້ຮັບການທົດສອບກັບ WordPress 3 ເວີຊັນຫຼັກຫຼ້າສຸດ**. ມັນອາດຈະ
ບໍ່ໄດ້ຮັບການເບິ່ງແຍງ ຫຼື ສະໜັບສະໜູນອີກຕໍ່ໄປ ແລະ ອາດມີບັນຫາການເຮັດວຽກຮ່ວມກັນເມື່ອ
ໃຊ້ກັບ WordPress ເວີຊັນທີ່ໃໝ່ກວ່າ.

![](https://ps.w.org/cpt-toggle-disable-custom-post-types/assets/icon-128x128.png?
rev=3357752)

# CPT Toggle – Disable Custom Post Types

 ໂດຍ [DesignStack](https://profiles.wordpress.org/designstack/)

[ດາວໂຫຼດ](https://downloads.wordpress.org/plugin/cpt-toggle-disable-custom-post-types.1.5.zip)

 * [ລາຍລອຽດ](https://lo.wordpress.org/plugins/cpt-toggle-disable-custom-post-types/#description)
 * [ການຣີວິວ](https://lo.wordpress.org/plugins/cpt-toggle-disable-custom-post-types/#reviews)
 *  [ການຕິດຕັ້ງ](https://lo.wordpress.org/plugins/cpt-toggle-disable-custom-post-types/#installation)
 * [ການພັດທະນາ](https://lo.wordpress.org/plugins/cpt-toggle-disable-custom-post-types/#developers)

 [ການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/cpt-toggle-disable-custom-post-types/)

## ຄຳອະທິບາຍ

**Custom Post Type Toggle** gives you a clear overview of every registered post 
type on your site — whether they come from WordPress core, your theme, or installed
plugins. Post types are grouped under tabs by their source, so it’s easy to see 
what comes from where.

If you don’t need some post types (e.g. “Portfolio” from a theme you’re not using,
or “Testimonials” from a plugin), switch them off. Disabling hides the post type
in admin and prevents it being used on the front end.

**Why use it**
 – Keep the admin menu uncluttered – Reduce confusion for editors
and clients – Lighten the site by disabling unused post types

**Features**
 – Toggle any post type (core or custom) on/off – Tabs that group post
types by source (Core, theme, plugin) – Clean card-based interface with instant 
AJAX switching – Counters for enabled, disabled and total – Safe to use — re-enable
at any time

**How it works**
 The plugin inspects where `register_post_type()` is called from
and labels the source as Core, active theme/child theme, or a specific plugin name.

## ພາບໜ້າຈໍ

[⌊Core tab showing CPTs and all other CPTs on the Wordpress installation.⌉⌊Core 
tab showing CPTs and all other CPTs on the Wordpress installation.⌉[

Core tab showing CPTs and all other CPTs on the Wordpress installation.

[⌊Example: theme tab showing disabled CPTs.⌉⌊Example: theme tab showing disabled
CPTs.⌉[

Example: theme tab showing disabled CPTs.

## ການຕິດຕັ້ງ

 1. Upload the plugin folder to `/wp-content/plugins/` or install via Plugins  Add 
    New.
 2. Activate the plugin.
 3. Go to **Settings  CPT Toggle**.
 4. Use the tabs to view sources; flip the switches to enable/disable post types.

## ຄຳຖາມທີ່ພົບເລື້ອຍ

### Does disabling delete any content?

No. Content remains in the database. Re-enable the post type to access it again.

### Will permalinks need refreshing?

Usually not. If you’ve changed a lot, visit **Settings  Permalinks** and click **
Save** to flush rules.

### Some post types show under “Unknown”. Why?

Occasionally a source can’t be inferred from the stack. Tell us the CPT slug and
we’ll refine detection.

## ການຣີວິວ

ບໍ່ມີການຣີວິວສຳລັບປລັກອິນນີ້.

## ຜູ້ຮ່ວມພັດທະນາ ແລະ ຜູ້ພັດທະນາ

“CPT Toggle – Disable Custom Post Types” ແມ່ນຊອຟແວໂອເພັນຊອດ (Open Source). ບຸກຄົນ
ຕໍ່ໄປນີ້ໄດ້ມີສ່ວນຮ່ວມໃນການພັດທະນາປລັກອິນນີ້.

ຜູ້ຮ່ວມພັດທະນາ

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

[ແປ “CPT Toggle – Disable Custom Post Types” ເປັນພາສາຂອງເຈົ້າ.](https://translate.wordpress.org/projects/wp-plugins/cpt-toggle-disable-custom-post-types)

### ສົນໃຈຮ່ວມພັດທະນາບໍ່?

[ເບິ່ງລະຫັດ](https://plugins.trac.wordpress.org/browser/cpt-toggle-disable-custom-post-types/),
ກວດເບິ່ງ [ຄັງເກັບ SVN](https://plugins.svn.wordpress.org/cpt-toggle-disable-custom-post-types/),
ຫຼື ຕິດຕາມ [ບັນທຶກການພັດທະນາ](https://plugins.trac.wordpress.org/log/cpt-toggle-disable-custom-post-types/)
ຜ່ານ [RSS](https://plugins.trac.wordpress.org/log/cpt-toggle-disable-custom-post-types/?limit=100&mode=stop_on_copy&format=rss).

## ບັນທຶກການປ່ຽນແປງ

#### 1.5

 * Fixed contributors

#### 1.4

 * Prepared for public release
 * Bumped version to 1.4.

#### 1.3

 * Fixed .org review error: Plugin URI and Author URI are now different.
 * Bumped version to 1.3.

#### 1.2

 * Paths: replaced internal constants with plugin-agnostic detection (active/network/
   MU plugins) for source mapping.
 * Prefixing: unique `cptt_dcp` prefix across class, options, AJAX and handles.
 * i18n: text domain now matches slug (`cpt-toggle-disable-custom-post-types`).
 * Security: moved dynamic data to JSON-injected object for inline JS (proper escaping).
 * Uninstall: cleans both new and legacy option names.

#### 1.1

 * Added translators comment before footer string with placeholder.
 * Renamed plugin to “CPT Toggle – Disable Custom Post Types”.
 * Bumped stable tag to 1.1.

#### 1.0

 * Added translators comments for placeholder strings.
 * Removed load_plugin_textdomain() (WP.org auto-loads language packs).
 * Sanitised/unslashed AJAX inputs; validated indexes; clearer error output.
 * Readme: updated “Tested up to”, trimmed tags to 5, short description to ≤150 
   chars.

#### 0.9

 * Prepared WordPress.org assets, readme, license, uninstall.
 * Minor copy tweaks.

#### 0.8

 * Tabs now scroll horizontally when there are many sources.
 * Smooth scroll to the active tab.

#### 0.7

 * More reliable source detection (skip this plugin in backtrace).
 * Capture during `register_post_type_args`.

#### 0.6

 * Introduced tabbed UI, grouped by source (Core, plugins, theme).
 * Card layout, AJAX toggles, counts.

## ຂໍ້ມູນກຳກັບ (Meta)

 *  ເວີຊັນ **1.5**
 *  ອັບເດດຫຼ້າສຸດເມື່ອ **12 ເດືອນ ທີ່ຜ່ານມາ** ທີ່ຜ່ານມາ
 *  ການຕິດຕັ້ງທີ່ໃຊ້ງານຢູ່ **40+**
 *  ເວີຊັນ WordPress ** 6.0 ຫຼື ສູງກວ່າ **
 *  ທົດສອບເຖິງເວີຊັນ **6.8.8**
 *  ເວີຊັນ PHP ** 7.4 ຫຼື ສູງກວ່າ **
 *  ພາສາ
 * [English (US)](https://wordpress.org/plugins/cpt-toggle-disable-custom-post-types/)
 * ແທັກ
 * [admin](https://lo.wordpress.org/plugins/tags/admin/)[cpt](https://lo.wordpress.org/plugins/tags/cpt/)
   [custom post type](https://lo.wordpress.org/plugins/tags/custom-post-type/)[disable](https://lo.wordpress.org/plugins/tags/disable/)
   [toggle](https://lo.wordpress.org/plugins/tags/toggle/)
 *  [ມຸມມອງຂັ້ນສູງ](https://lo.wordpress.org/plugins/cpt-toggle-disable-custom-post-types/advanced/)

## ການໃຫ້ຄະແນນ

ຍັງບໍ່ມີການສົ່ງຄຳວິຈານເທື່ອ.

[ການທົບທວນຂອງທ່ານ](https://wordpress.org/support/plugin/cpt-toggle-disable-custom-post-types/reviews/#new-post)

[ເບິ່ງທັງໝົດ ການຣີວິວ](https://wordpress.org/support/plugin/cpt-toggle-disable-custom-post-types/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ

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

## ການຊ່ວຍເຫຼືອ

ມີຄຳຖາມ ຫຼື ຕ້ອງການຄວາມຊ່ວຍເຫຼືອບໍ່?

 [ເບິ່ງຟໍຣັມການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/cpt-toggle-disable-custom-post-types/)

## ບໍລິຈາກ

ເຈົ້າຕ້ອງການສະໜັບສະໜູນການພັດທະນາຂອງປລັກອິນນີ້ບໍ່?

 [ ບໍລິຈາກໃຫ້ປລັກອິນນີ້ ](https://designstack.co.uk/)