Title: Remove Orphan Shortcodes
Author: Meks
Published: <strong>2013 年 5 月 7 日</strong>
Last modified: 2024 年 7 月 29 日

---

搜索插件

![](https://ps.w.org/remove-orphan-shortcodes/assets/banner-772x250.jpg?rev=1927391)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/remove-orphan-shortcodes/assets/icon-256x256.png?rev=1522354)

# Remove Orphan Shortcodes

 作者：[Meks](https://profiles.wordpress.org/mekshq/)

[下载](https://downloads.wordpress.org/plugin/remove-orphan-shortcodes.zip)

 * [详情](https://cn.wordpress.org/plugins/remove-orphan-shortcodes/#description)
 * [评价](https://cn.wordpress.org/plugins/remove-orphan-shortcodes/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/remove-orphan-shortcodes/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/remove-orphan-shortcodes/#developers)

 [支持](https://wordpress.org/support/plugin/remove-orphan-shortcodes/)

## 描述

This is a simple plugin which automatically hides inactive (orphan) shortcode tags
you have used for previous themes and/or plugins. It uses the_content filter to 
search for shortcode tags which are not active and simply removes them from your
post/page content (note the shortode tags won’t be deleted form your content, they
will just be removed temporarily on your website frontend). It is a great solution
if you want to avoid manual removal of old shortcode tags from your entire content.

Remove Orphan Shortcodes plugin is created by [Meks](https://mekshq.com)

## 安装

 * Upload remove-orphan-shortcodes.zip to plugins, like any other plugin, or upload
   unzipped folder remove to wp-content/plugins/
 * Activate the plugin through the “Plugins” menu in WordPress

## 常见问题

 * For any questions, error reports and suggestions please visit https://mekshq.
   com/contact

## 评价

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

### 󠀁[Love it](https://wordpress.org/support/topic/love-it-4253/)󠁿

 [syzygist](https://profiles.wordpress.org/syzygist/) 2025 年 2 月 7 日

This is one of those great little plugins that does only one thing, but by doing
it, can save hours of frustration and hair-tearing. THANK you for this simple solution
to a very common problem!

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

### 󠀁[Why?](https://wordpress.org/support/topic/why-92/)󠁿

 [lilunai](https://profiles.wordpress.org/lilunai/) 2023 年 3 月 25 日

I needed to temporarily hide some shortscodes and this plugin works great but… it
has also hidden the Rank Math FAQ blocks which are not orphaned, obviously.I hope
that in the next update it will be corrected. Fingers crossed.

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

### 󠀁[Fails with Gutenberg Block array attributes](https://wordpress.org/support/topic/fails-with-gutenberg-block-array-attributes/)󠁿

 [brumack](https://profiles.wordpress.org/brumack/) 2022 年 10 月 14 日

Any gutenberg block storing an array in block attributes JSON is flagged as a shortcode.
As most blocks using JSON attributes also use render_callback and server-side rendering,
this causes the block to disappear entirely – broken JSON is hard to parse. Ergo,
don’t use this if you also use ACF, because any repeater or relationship field in
a block can cause the entire thing to disappear.

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

### 󠀁[Did nothing…](https://wordpress.org/support/topic/did-nothing-18/)󠁿

 [leroy](https://profiles.wordpress.org/leroytuttle/) 2022 年 4 月 20 日

of the sort

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

### 󠀁[You’re Kidding Right?](https://wordpress.org/support/topic/youre-kidding-right-2/)󠁿

 [Stef](https://profiles.wordpress.org/serafinnyc/) 2021 年 4 月 16 日

Why would anyone want to leave a useless plugin after the cleaning? Make it so it
cleans and can be deleted. Otherwise what’s the point? SMH

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

### 󠀁[Good](https://wordpress.org/support/topic/good-5620/)󠁿

 [Pencho15](https://profiles.wordpress.org/pencho15/) 2020 年 7 月 20 日

Does what it promises and never has created problems. Recommended.

 [ 阅读所有13条评价 ](https://wordpress.org/support/plugin/remove-orphan-shortcodes/reviews/)

## 贡献者及开发者

「Remove Orphan Shortcodes」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「Remove Orphan Shortcodes」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/remove-orphan-shortcodes)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/remove-orphan-shortcodes/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/remove-orphan-shortcodes/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/remove-orphan-shortcodes/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/remove-orphan-shortcodes/)。

## 更新日志

#### 1.2

 * Fixed: PHP notice thrown in specific versions

#### 1.1

 * Optimization improvements
 * Fixed an issue with breaking image captions

#### 1.0

 * Initial release

## 额外信息

 *  版本 **1.2**
 *  最后更新：**2 年前**
 *  活跃安装数量 **1,000+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **6.6.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/remove-orphan-shortcodes/)
 * 标签
 * [content](https://cn.wordpress.org/plugins/tags/content/)[php](https://cn.wordpress.org/plugins/tags/php/)
   [shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)[shortcodes](https://cn.wordpress.org/plugins/tags/shortcodes/)
   [tag](https://cn.wordpress.org/plugins/tags/tag/)
 *  [高级视图](https://cn.wordpress.org/plugins/remove-orphan-shortcodes/advanced/)

## 评级

 3.9 星（最高 5 星）。

 *  [  9 条 5 星评价     ](https://wordpress.org/support/plugin/remove-orphan-shortcodes/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/remove-orphan-shortcodes/reviews/?filter=4)
 *  [  1 条 3 星评价     ](https://wordpress.org/support/plugin/remove-orphan-shortcodes/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/remove-orphan-shortcodes/reviews/?filter=2)
 *  [  3 条 1 星评价     ](https://wordpress.org/support/plugin/remove-orphan-shortcodes/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/remove-orphan-shortcodes/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/remove-orphan-shortcodes/reviews/)

## 贡献者

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

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/remove-orphan-shortcodes/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://mekshq.com/)