Title: Shortcode Scrubber
Author: Micah Wood
Published: <strong>2018 年 9 月 11 日</strong>
Last modified: 2020 年 12 月 13 日

---

搜索插件

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

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

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

# Shortcode Scrubber

 作者：[Micah Wood](https://profiles.wordpress.org/wpscholar/)

[下载](https://downloads.wordpress.org/plugin/shortcode-scrubber.1.0.3.zip)

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

 [支持](https://wordpress.org/support/plugin/shortcode-scrubber/)

## 描述

The **Shortcode Scrubber** plugin allows to you to confidently manage plugins and
themes that use shortcodes.

 * Have you ever gone to disable a WordPress plugin not realizing that it had shortcodes
   you were using?
 * Have you ever wondered what shortcodes are available for use on your site?
 * Have you ever wondered what plugin or theme provided a specific shortcode so 
   you know where to look for documentation?
 * Have you ever discovered broken shortcodes displayed on your site?
 * Have you ever wanted to prevent content editors from using a specific shortcode?
 * Have you ever wanted to clean up old shortcode content?
 * Have you ever run into shortcodes that won’t process other shortcodes?

If you answered yes to any of the questions above, then the Shortcode Scrubber can
help!

#### Features

 * When active, all broken shortcodes displayed on the site are automatically hidden.
 * When active, all shortcodes are auto-magically nestable.
 * Ability to view all registered shortcodes and whether it is provided by WordPress
   core, the active theme or a plugin.
 * Ability to easily find all uses of a specific shortcode across all posts, pages,
   custom post types and widgets.
 * Ability to disable individual shortcodes temporarily or permanently remove all
   uses of a shortcode.
 * Ability for developers to create extensions that can manage shortcode migrations(
   e.g. Visual Composer to bootstrap compatible markup or shortcode to Gutenberg
   block conversions).
 * Clean, well written code that won’t bog down your site.

## 屏幕截图

 * [[
 * See all of the shortcodes registered in WordPress and easily find out where they
   may be in use.
 * [[
 * View all of the posts in WordPress (custom post types included) that have shortcodes.
   Shortcodes left behind by plugins and themes that are no longer in use are shown
   in red.
 * [[
 * View all of the widgets in WordPress that have shortcodes. Shortcodes left behind
   by plugins and themes that are no longer in use are shown in red.
 * [[
 * Easily create shortcode filters that can control how, or if, shortcodes are shown
   on your site.
 * [[
 * Easily create shortcode filters that can control how, or if, shortcodes are shown
   on your site. Developers can create additional shortcode filter handlers.

## 安装

#### Prerequisites

If you don’t meet the below requirements, this plugin will not work. I highly recommend
you upgrade your WordPress install or move to a web host that supports a more recent
version of PHP.

 * Requires WordPress version 3.2 or greater
 * Requires PHP version 5.6 or greater

#### The Easy Way

 1. In your WordPress admin, go to ‘Plugins’ and then click on ‘Add New’.
 2. In the search box, type in ‘Shortcode Scrubber’ and hit enter. This plugin should
    be the first and likely the only result.
 3. Click on the ‘Install’ link.
 4. Once installed, click the ‘Activate this plugin’ link.

#### The Hard Way

 1. Download the .zip file containing the plugin.
 2. Upload the file into your `/wp-content/plugins/` directory and unzip
 3. Find the plugin in the WordPress admin on the ‘Plugins’ page and click ‘Activate’

#### Usage Instructions

Once the plugin is installed and activated, go to the ‘Shortcodes’ menu item in 
the left admin menu when you are logged in and on the administrative section of 
the site.

Note: You must have the ‘manage_options’ capability to see the ‘Shortcodes’ menu
item. Typically, only site administrators will have this capability.

## 评价

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

### 󠀁[Works for Divi Shortcodes!](https://wordpress.org/support/topic/works-for-divi-shortcodes/)󠁿

 [voltima](https://profiles.wordpress.org/voltima/) 2021 年 7 月 15 日 1 回复

Thank you so much! Tried all the functions online to no avail. This worked flawlessly
and was easy.

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

### 󠀁[Concept and Use is Perfect, Support is Great!](https://wordpress.org/support/topic/concept-and-use-is-perfect/)󠁿

 [Enterprise Branding](https://profiles.wordpress.org/enterprisebranding/) 2020 
年 6 月 27 日

Support is GREAT!!! Also, no heavy loading in the backend to achieve this. Very 
well thought out, with quick and easy ways to search, or locate shortcode uses across
specific plugins, WordPress, and posts. My only thought, suggestion maybe is… that
you might add a feature to add custom shortcodes to be used throughout the site.
I know there are other plugins that do this, but it kind of feels like this plugin
holds more management of shortcodes, and with that feature it would reduce the need
of another plugin that allows to create custom shortcodes from the backend to use
throughout the site. But of course, that is just a thought tossed up, if you consider
it at some time.

 [ 阅读所有2条评价 ](https://wordpress.org/support/plugin/shortcode-scrubber/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Micah Wood ](https://profiles.wordpress.org/wpscholar/)

[帮助将「Shortcode Scrubber」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/shortcode-scrubber)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.3

 * Fix broken deployment.

#### 1.0.2

 * Minor code refactor to use Composer packages.

#### 1.0.1

 * Tested in WordPress version 5.1
 * Updated code to abide by coding standards.

#### 1.0.0

 * Initial commit; tested in WordPress version 4.9.8

## 额外信息

 *  版本 **1.0.3**
 *  最后更新：**5 年前**
 *  活跃安装数量 **50+**
 *  WordPress 版本 ** 3.2 或更高版本 **
 *  已测试的最高版本为 **5.6.17**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/shortcode-scrubber/)
 * 标签
 * [shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
 *  [高级视图](https://cn.wordpress.org/plugins/shortcode-scrubber/advanced/)

## 评级

 5 星（最高 5 星）。

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

[添加我的评价](https://wordpress.org/support/plugin/shortcode-scrubber/reviews/#new-post)

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

## 贡献者

 *   [ Micah Wood ](https://profiles.wordpress.org/wpscholar/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/shortcode-scrubber/)

## 捐助

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

 [ 捐助此插件 ](https://www.paypal.me/wpscholar)