We'll create fresh WordPress site with Shortcodes In Use installed. You have 20 minutes to test the plugin after that site we'll be deleted.
This is a simple administration tool that lists occurences of shortcodes within post content and/or custom fields, and/or widget settings.
You can select, or search for, specific shortcodes, and it can filter down to a provider, location, or post type.
It is intended to help administrators/editors locate where shortcodes have been used, so that they can be updated, renamed, deleted, or whatever.
Features include :
[gallery]
), or unknown (an inactive/deleted plugin, maybe?)What it does not do :
If you like this plugin (or if you don’t?), please consider taking a moment or two to give it a
Review : it helps others, and gives me valuable feedback.
The shortcode for this plugin is…
[shortcodes_in_use/]
…and output is restricted to users with edit_posts capability.
The attributes available are in line with the options available in the Tool, and each one is a filter.
Setting an attribute for all possible values is the same as omitting that attribute.
Separate filters are ANDed, ie. specifying provider="wordpress" post_type="page"
limits the results
to shortcode tags that are in a page AND provided by WordPress core.
Multiple values within a filter are ORed, ie. specifying post_type="post page" provider="wordpress"
limits the results to WordPress’s own shortcode tags that are in either a post OR a page.
When you run the Tool in admin, the equivalent shortcode for the selected options is provided at the end
of the results. Also, the sanitized shortcode is repeated at the top of the shortcode’s output.
search (string) : A space or comma is interpreted as a delimiter, so…
[shortcodes_in_use search="foo bar"/]
…looks for any shortcode tag that contains either “foo” or “bar”.
provider (string) : Any one or more of unknown, wordpress, plugin, or theme,
delimited by either a comma or a space. For example…
[shortcodes_in_use provider="plugin unknown"/]
…reports any shortcode tag whose provider cannot be determined, or whose provider has be
determined as being a plugin.
location (string) : Any one or more of title, content, excerpt, meta or widget,
delimited by either a comma or a space. For example…
[shortcodes_in_use location="content excerpt"/]
…reports any shortcode tag found in any main content or excerpt area.
post_type (string) : Any one or more of WordPress’s standard post types – post, page,
attachment, etc – and/or any custom post types. Multiple post types are comma- or space-delimited.
For example…
[shortcodes_in_use post_type="post,page"/]
…reports any shortcode tag found in a post of type ‘post’ or ‘page’.
tag (string) : Any one or more shortcode tags, delimited by either a comma or a space. For
example…
[shortcodes_in_use tag="shortcodes_in_use, custom_menu_wizard"/]
…reports any occurence of either of those two shortcode tags.
name (string) : This allows you to specify a specific plugin and/or theme by name. Multiple
names are comma- or space-delimited, and each name must begin with either “plugin/” or “theme/”.
For example…
[shortcodes_in_use name="plugin/Shortcodes In Use, theme/Twenty Fifteen"/]
…reports any occurence of a shortcode tag belonging to either the Shortcodes In Use plugin or
the Twenty Fifteen theme. Instead of the name of the plugin/theme, you can supply their
containing folder, so this would be an alternative for the example above…
[shortcodes_in_use name="plugin/shortcodes-in-use, theme/twentyfifteen"/]