[WordPress] 外掛分享: Shortcodes In Use

首頁外掛目錄 › Shortcodes In Use
WordPress 外掛 Shortcodes In Use 的封面圖片
80+
安裝啟用
★★★★★
5/5 分(8 則評價)
3730 天前
最後更新
問題解決
WordPress 3.8+ v1.2.1 上架:2014-11-15

內容簡介

無法回憶某個短代碼是否已被使用?
想要移除一個外掛,但不確定它是否提供短代碼或者是否正在使用短代碼?
不知道 WordPress 附帶了哪些短代碼?
找到了一个未知的短代碼,但不確定還有沒有其他未知的短代碼?
需要更換佈景主題,但不知道是否正在使用短代碼?
想要使用特定的短代碼,但不確定它的確切名稱?
需要更改一個短代碼的所有出現次數的參數?

這是一個簡單的管理工具,可以列出文章內容、自訂欄位和小工具設定中的短代碼出現次數。
您可以選擇或搜尋特定的短代碼,並可以按提供者、位置或文章類型進行篩選。
這個工具旨在幫助管理員/編輯者找到使用了哪些短代碼,以便進行更新、重命名、刪除或其他操作。

功能包括:

搜尋用於匹配短代碼標籤的字串—使用空格或逗號作為多個搜尋字串之間的分隔符號。
按短代碼提供者的類型進行篩選—它是由外掛、您的佈景主題,WordPress 內部(例如)提供的,還是未知的(可能是一個未啟用/已刪除的外掛?)。
按特定提供者進行篩選—例如一個命名的外掛。
按任意數量的特定、已識別的短代碼進行篩選。
篩選搜尋短代碼的地方—文章內容、文章元數據(自訂欄位)或小工具等。
按包含短代碼的文章類型進行篩選。
在結果中包括(相關和可用的):小工具名稱和側邊欄,或鏈接的文章標題和文章類型;短代碼及其參數;短代碼提供者(WordPress、外掛、佈景主題或未知),以及它的位置。
有自己的短代碼,在非管理後台時使用。

它不會:

提供任何有關任何短代碼做什麼或如何使用/配置的見解。
不查看自訂表、佈景主題選項、類型。

如果您喜歡這個外掛程式(或者您不喜歡?),請考慮花一兩分鐘時間
撰寫評論:它能幫助他人,並給予我有價值的反饋。

短代碼

這個外掛程式的短代碼是...

[shortcodes_in_use/]

...並且輸出僅限於具有 edit_posts 能力的使用者。

可用的屬性與工具中的選項相同,每個屬性都是一個篩選器。
將所有可能值設置為一個屬性的方式與省略該屬性相同。

不同的篩選器是 ANDed,即指定 provider="wordpress" post_type="page" 將篩選結果限制為頁面中由 WordPress 核心提供的短代碼標籤。
在篩選器內有多個值的話是 ORed,即指定 post_type="post page" provider="wordpress"
將篩選結果限制為 WordPress 自己的短代碼標籤,在文章或頁面中兩者都有。

在管理後台運行工具時,所選選項的等效短代碼位於結果末尾。
此外,已消毒短代碼在短代碼輸出的頂部重複一次。

search (string):空格或逗點被解釋為分隔符,因此...

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Shortcodes In Use」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Can’t recall where, or if, you’ve used a certain shortcode?
Want to remove a plugin and unsure if it provides shortcodes or whether you’re using them?
Don’t know what shortcodes come with WordPress?
Found one unrecognised shortcode but unsure where there might be others?
Need to swap out a theme and don’t know if it has shortcodes that you’ve used?
Want to use a shortcode for a specific bit of information but can’t remember exactly what it’s called?
Need to a change a parameter for all occurences of a shortcode?

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 :

Search string(s) to match against shortcode tags – space or comma delimited for multple search strings
Filter by the type of provider of shortcode – whether it is provided by a plugin, your theme, internal to WordPress (eg. ), or unknown (an inactive/deleted plugin, maybe?)
Filter by a specific provider – a named plugin, for example
Filter by any number of specific, recognised shortcodes
Filter by where to look for the shortcode – post content, post meta data (custom fields), or widgets
Filter by the type of post that contains the shortcode
Results include (where relevant and available) : either the widget name and its sidebar, or a linked post title and the type of post; the shortcode and its parameters; the shortcode provider (WordPress, plugin, theme, or unknown), and where it was found
Has its own shortcode, for use when a plugin or theme only declares a shortcode when not in the admin backend

What it does not do :

It does not provide any insight as to what any shortcode does, or how to use/configure it.
It does not look at custom tables, theme options, transients.

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.
Shortcode
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"/]

延伸相關外掛

文章
Filter
Apply Filters
Mastodon