[WordPress] 外掛分享: Block Finder

首頁 › 外掛目錄 › Block Finder
WordPress 外掛 Block Finder 的封面圖片
300+
安裝啟用
★★★★★
5/5 分(1 則評價)
剛更新
最後更新
—
問題解決
WordPress 6.7+ PHP 8.0+ v2.0.0 上架:2024-09-01

內容簡介

總結:這個 WordPress 外掛新增了一個儀表板 metabox,讓使用者可以快速找到並編輯網站上所有文章類型中的特定核心或自訂區塊。

問題與答案:
<ul>
<li>1. 這個 WordPress 外掛新增了什麼功能?
<ul>
<li>答:新增了一個儀表板 metabox。</li>
</ul>
</li>
<li>2. 使用者可以透過這個新增的功能做什麼?
<ul>
<li>答:使用者可以快速找到並編輯網站上所有文章類型中的特定核心或自訂區塊。</li>
</ul>
</li>
</ul>

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0.0) 或搜尋安裝

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

原文外掛簡介

Ever needed to track down where a specific block is being used? Block Finder adds a dashboard widget that searches your entire site for any core or custom block. Pick a block, choose where to look, and see every place it appears — along with a count of how many times it’s used, how many of those uses are nested inside another block, and a direct link to edit that content.
No more manually opening posts one by one hoping to find the right block. Block Finder does the searching so you don’t have to.
Who is this for?
Content editors and site managers — need to update every post that uses a specific call-to-action block? Wondering which pages are still using a block you’re about to change? Block Finder gives you the answer in seconds, with one-click access to edit each result.
Developers and theme builders — auditing block usage across templates and template parts in the Site Editor, checking registered patterns, running automated checks from the command line, or letting an AI agent answer “where is this block used?”. Block Finder has you covered.
Features
Search your way:

Type-ahead block picker, including blocks hidden from the inserter (synced patterns, footnotes, deprecated blocks)
Type any block name to find blocks from deactivated plugins, or use a wildcard such as my-plugin/* to find every block from one plugin
Search Posts, Patterns, Templates, Template parts, and Widgets at once, or tick just the sources you need
Filter by post type and post status — include drafts, pending, scheduled, and private content alongside published
Include indirect uses: when a block sits inside a synced pattern or template part, also list the posts and templates that use it
Narrow a search to one block style (such as outline buttons) or block variation

Understand what you find:

Results appear in a compact table (or list) built with the same DataViews component as the Site Editor, with a result count, sorting, and paging
See how many times a block appears in each piece of content, and how many of those uses are nested inside another block
Turn on the Location column to see where the block sits, such as “Group › Columns › Column”

Find blocks from the editor:

Select any block and choose “Find other uses of this block” from its More menu, or use the command palette
Selecting a variation, such as a YouTube embed, finds other YouTube embeds rather than every embed
Results open in place, and links open in a new tab so you keep your spot

Act on results quickly:

Edit and View actions open any result straight in the block editor or Site Editor
Export all results to CSV for audits and reports
Results only include content you are allowed to edit

For Developers and Theme Builders
WP-CLI — run wp block-finder search from the command line. Accepts a block name or a namespace wildcard (my-plugin/*), and supports --post-type, --post-status, --sources, --style, --variation, --attr, --follow-references, and --format=table|json|csv|count|ids. Use --format=count in CI pipelines or --format=csv for export and audit reports.
Template and template part search — find blocks inside Site Editor templates on any block theme. Both file-based and database-stored templates are included.
Pattern search — covers user-saved synced patterns and every pattern registered by your theme or plugins via WP_Block_Patterns_Registry, not just the ones saved to the database.
Abilities API — on WordPress 6.9 and later, Block Finder registers a read-only block-finder/find-block-usage ability. AI agents connected through the WordPress MCP adapter, and any plugin using the Abilities API, can ask where a block is used and get the same results as the dashboard, limited to content the user can edit.
Developer hooks — extend or modify search behaviour without touching plugin code:

block_finder_sources — add or remove sources before the search runs
block_finder_results — modify the assembled result set before it is returned

REST API — GET /wp-json/block-finder/v2/usage?block=core/heading returns JSON results with standard X-WP-Total / X-WP-TotalPages headers, and supports sources, post_type, post_status, style, variation, attributes, follow_references, nested, search, orderby, order, page, per_page, and _fields. Requires the edit_posts capability; results only include content the current user can edit.

延伸相關外掛

文章
Filter
Mastodon