
內容簡介
Debug Bar Shortcodes 新增一個面板至 Debug Bar,顯示當前請求所註冊的 shortcode。
此外,它還會顯示以下資訊:
由哪個函數/方法呼叫 shortcode
shortcode 是否在目前的文章/頁面/文章類型中使用,以及如何使用(僅當單一時顯示)
有關 shortcode 的任何其他可用資訊,例如說明,它帶有哪些參數,它是否是自動關閉符號短碼。
想要控制你自己 shortcode 的其他資訊顯示?你可以!請查看常見問題解答頁面了解更多資訊。
查找 shortcode 在哪些页面/文章/等使用
此外,此外掛與 LRH-Shortcode list 和 Shortcake/Shortcode UI 外掛兼容。由這些外掛提供的任何有關 shortcode 的其他資訊也會透過此外掛進行考虑和提供。
為什麼瞭解 shortcode 很有用?
我可以想到一些典型的用途:
如果您是部落格作者:
知道您可以在文章/頁面中使用哪些 shortcode。
如果您更換外掛或移除外掛,知道在哪些文章/頁面中需要移除/替換舊的 shortcode
如果您是網頁設計師/網站管理員:
如果您更換外掛或移除外掛,知道在哪些文章/頁面中需要移除/替換舊的 shortcode
知道您可以在主題檔案中使用哪些 shortcode。
避免網站特定 shortcode 名稱的衝突。
如果您是開發人員:
避免與其他外掛/主題註冊的 shortcode 名稱衝突。
檢查您的 shortcode 是否正確註冊以及條件是否正確應用。
重要提示
此外掛需要安裝並啟用 Debug Bar 外掛。
感謝
其他資訊功能靈感來自於 LRH-Shortcode list 和 Shortcode reference。
搜索整個網站中 shortcode 使用的靈感來自於 TR All Shortcodes
如果您喜歡此外掛,請評分和/或評論。如果您對更好的外掛意見或有任何錯誤,請在支援論壇或GitHub 儲存庫中報告。
外掛標籤
開發者團隊
原文外掛簡介
Debug Bar Shortcodes adds a new panel to the Debug Bar that displays the registered shortcodes for the current request.
Additionally it will show you:
Which function/method is called by the shortcode
Whether the shortcode is used on the current post/page/post type and how (only when on singular)
Any additional information available about the shortcode, such as a description, which parameters it takes, whether or not it is self-closing.
Want to control the additional information displayed about your own shortcodes ? You can! See the FAQ for more info.
Find out all pages/posts/etc on which a shortcode is used
This plugin is compatible with the LRH-Shortcode list and the Shortcake/Shortcode UI plugins. Additional information about a shortcode provided to these plugins will be taken into account and made available through this plugin too.
Why is it useful to have insight into the shortcodes ?
There are a number of typical uses I can think of:
If you are a blog author:
to know which shortcodes you can use in your posts/pages.
if you switch plugins or remove a plugin, to know in which posts/pages you need to remove/replace old shortcodes
If you are a web designer / web master:
if you switch plugins or remove a plugin, to know in which posts/pages you need to remove/replace old shortcodes.
to know which shortcodes you can use in theme files.
to avoid name conflicts for website specific shortcodes.
If you are a developer:
to avoid name conflicts with shortcodes registered by other plugins/themes.
to check whether your shortcode registers properly and whether the conditionals are applied correctly.
Important
This plugin requires the Debug Bar plugin to be installed and activated.
Credits
The additional information functionality is inspired by LRH-Shortcode list and Shortcode reference.
The finding of shortcode uses throughout the site is inspired by TR All Shortcodes
If you like this plugin, please rate and/or review it. If you have ideas on how to make the plugin even better or if you have found any bugs, please report these in the Support Forum or in the GitHub repository.
