Title: CodeUnwrap – Shortcode Cleanup
Author: Mohit Chawla
Published: <strong>2026 年 9 月 10 日</strong>
Last modified: 2026 年 9 月 10 日

---

搜尋外掛

![](https://ps.w.org/codeunwrap-shortcode-cleanup/assets/banner-772x250.png?rev=
3690160)

![](https://ps.w.org/codeunwrap-shortcode-cleanup/assets/icon-256x256.png?rev=3690160)

# CodeUnwrap – Shortcode Cleanup

 由 [Mohit Chawla](https://profiles.wordpress.org/m9729640633/) 開發

[下載](https://downloads.wordpress.org/plugin/codeunwrap-shortcode-cleanup.1.1.2.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/codeunwrap-shortcode-cleanup/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/codeunwrap-shortcode-cleanup/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/codeunwrap-shortcode-cleanup/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/codeunwrap-shortcode-cleanup/#developers)

 [技術支援](https://wordpress.org/support/plugin/codeunwrap-shortcode-cleanup/)

## 外掛說明

CodeUnwrap – Shortcode Cleanup adds a screen under Tools where authorized editors
can remove a specific shortcode from posts and other editable content types. Enter
a shortcode name, choose whether to remove the complete shortcode or preserve its
inner content, and let the plugin process content in small AJAX batches.

The plugin can also scan for shortcode tags that are not currently registered. Scan
results are presented for review, and nothing changes until specific items are selected.
WordPress revisions provide recovery points where supported.

#### Features

 * Clean a specific shortcode by entering its tag name.
 * Keep enclosed text or remove the complete shortcode and its inner content.
 * Scan editable content for shortcode tags that are no longer registered.
 * Review and select affected content before bulk cleanup.
 * Process targeted cleanup and scans in small AJAX batches.
 * Keep original post modified dates when cleaning, enabled by default.
 * Use WordPress capabilities, nonces, sanitization, escaping, and revision-compatible
   updates.

## 安裝方式

 1. Upload the `codeunwrap-shortcode-cleanup` directory to `/wp-content/plugins/`.
 2. Activate CodeUnwrap – Shortcode Cleanup through the Plugins screen.
 3. Open Tools > CodeUnwrap – Shortcode Cleanup.
 4. Before removing or replacing any shortcode content, take a complete database backup
    and confirm that it can be restored.
 5. Enter a shortcode name for targeted cleanup, or scan for unregistered shortcodes.

## 常見問題集

### Does scanning change content?

No. Scanning is read-only and the results expire automatically after 30 minutes.

### Can I keep the text inside an enclosing shortcode?

Yes. Choose “Remove shortcode wrapper and keep inner text” before starting targeted
cleanup.

### Will cleanup time out on a large site?

Targeted cleanup processes content in small sequential AJAX batches to avoid normal
page-request timeouts.

### Can cleaned content be recovered?

WordPress creates a revision during the update when revisions are enabled for that
content type.

### Will cleanup change the post modified date?

By default, no. The “Keep the original modified date” option is selected for targeted
and bulk cleanup. Clear that option if you want WordPress to record the cleanup 
time as the modified date.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈CodeUnwrap – Shortcode Cleanup〉的開發相關工作。

參與者

 *   [ Mohit Chawla ](https://profiles.wordpress.org/m9729640633/)

[將〈CodeUnwrap – Shortcode Cleanup〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/codeunwrap-shortcode-cleanup)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/codeunwrap-shortcode-cleanup/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/codeunwrap-shortcode-cleanup/)，
或透過 [RSS](https://plugins.trac.wordpress.org/log/codeunwrap-shortcode-cleanup/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/codeunwrap-shortcode-cleanup/)。

## 變更記錄

#### 1.1.2

 * Added an explicit database-backup reminder to the installation instructions.

#### 1.1.1

 * Renamed the plugin to CodeUnwrap – Shortcode Cleanup with a distinctive WordPress.
   org slug and matching identifiers.

#### 1.1.0

 * Redesigned the administration screen with a clearer cleanup workflow, responsive
   scan results, and improved progress and selection feedback.
 * Added an option, enabled by default, to preserve original post modified dates
   during cleanup.

#### 1.0.0

 * Initial release.

## 中繼資料

 *  版本 **1.1.2**
 *  最後更新 **1 週前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 6.4 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.1.1**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/codeunwrap-shortcode-cleanup/)
 * 標籤:
 * [admin](https://tw.wordpress.org/plugins/tags/admin/)[cleanup](https://tw.wordpress.org/plugins/tags/cleanup/)
   [content](https://tw.wordpress.org/plugins/tags/content/)[shortcode](https://tw.wordpress.org/plugins/tags/shortcode/)
 *  [進階檢視](https://tw.wordpress.org/plugins/codeunwrap-shortcode-cleanup/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/codeunwrap-shortcode-cleanup/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/codeunwrap-shortcode-cleanup/reviews/)

## 參與者

 *   [ Mohit Chawla ](https://profiles.wordpress.org/m9729640633/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/codeunwrap-shortcode-cleanup/)