
內容簡介
總結:「Export Pattern & Block Location」是一個功能強大的 WordPress 外掛,可以幫助開發人員和網站管理員找出整個網站中特定 CSS 類別、Gutenberg 區塊和 WordPress 版面設計模式的使用情況。
問題與答案:
1. 這個外掛有什麼功能?
- 搜尋 CSS 類別:找出內容中所有特定 CSS 類別的使用情況。
- 搜尋 Gutenberg 區塊:定位所有特定區塊的使用情況(包括巢狀區塊)。
- 搜尋版面設計模式:查找 WordPress 版面設計模式的使用情況。
- 匯出 CSV:下載結果為 CSV 檔案以便進行分析。
- 匯出 JSON:通過 REST API 以 JSON 格式獲取結果。
- WPML 支援:對多語言網站進行語言篩選。
- 管理介面:在「工具」選單下的易於使用的管理頁面。
- REST API:用於自動化和整合的程式訪問。
2. 這個外掛可以應用在哪些情況下?
- 在移除之前找出使用了不建議的 CSS 類別的所有頁面。
- 審核哪些文章使用了特定的 Gutenberg 區塊。
- 追蹤網站中的版面設計模式使用情況以保持設計一致性。
- 在主題或外掛更新前,通過了解正在使用的內容來做好準備。
- 為內容清單生成報告。
3. 這個外掛的開發方式是什麼?
- 這個外掛使用建構過程來生成 JavaScript 和 CSS 檔案,分佈在 assets/build/ 目錄中。
- 可讀性良好的原始檔案包含在 assets/src/ 目錄中,可以在這個外掛中找到。
外掛標籤
開發者團隊
② 後台搜尋「Export Pattern & Block Location」→ 直接安裝(推薦)
原文外掛簡介
You want to remove a deprecated CSS class, retire a custom block or update a pattern, but WordPress has no way to tell you which posts and pages still use it. Searching by hand through hundreds of entries is slow, and the one you miss ends up broken after the change.
Export Pattern & Block Location scans your content for the CSS classes, blocks and patterns you name, shows every match in a table and lets you download the list as a CSV file.
Find it before you change it
Search CSS classes, Gutenberg blocks (including nested ones) or patterns by slug.
Enter several terms at once, separated by commas.
Each result shows the post, its type and status, and how many times the term appears.
Posts link straight to the editor.
Share the results
Download the matches as a CSV that opens correctly in Excel and Google Sheets.
Cells that start with =, +, - or @ are neutralised, so a post title can never run as a spreadsheet formula.
Built for large sites
Only posts that can contain your term are loaded, so searches stay fast on big sites.
The API lets you limit the scan by post type, status and, with WPML, language.
For developers
A REST endpoint (/wp-json/epbl-search/v1/run) returns CSV or JSON for automation and audits.
Ideal for developers, agencies and site administrators who need a reliable content inventory before a redesign, theme change or plugin update.
Privacy Policy
The plugin does not store personal data, add cookies or send anything to external servers. Searches run on your site and the CSV is generated in your browser.
Support
Need help or have a suggestion?
Please use the official WordPress.org Support Forum for any issues related to the plugin.
Want to know more?
Before making a change to your theme, find out where the elements are used: the plugin page explains how it works, what it records and what it deliberately leaves out. For anything else, or to get in touch with the development team, visit our official website.
Like the plugin?
Please leave a 5-star review and help others discover Export Pattern Block Location.
Development
This plugin uses a build process to generate the JavaScript and CSS files
distributed in assets/build/.
The original, human-readable source files are available in the
assets/src/ directory included in this plugin.
