
內容簡介
Find Blocks, Patterns & Shortcodes 外掛可幫助使用者快速搜尋包含特定 Gutenberg 區塊、樣式和短碼的內容,並提供 CSV 匯出功能,適合進行審核和分析。
【主要功能】
• 漸進式搜尋,適合大型網站批次處理
• 文章類型過濾,搜尋文章、頁面或自訂文章類型
• CSV 匯出,方便報告和分析
• 區塊下拉選單,選擇所有已註冊的區塊
• 屬性搜尋,依 CSS 類別和 HTML 錨點搜尋區塊
• 可排序的結果表格,便於分析
外掛標籤
開發者團隊
② 後台搜尋「Find Blocks, Patterns & Shortcodes」→ 直接安裝(推薦)
原文外掛簡介
Find Blocks, Patterns & Shortcodes locates content containing specific Gutenberg blocks (including options to search by CSS class and HTML anchor attributes), patterns, and shortcodes, with a CSV export feature perfect for audits & analysis.
Core Features
Progressive search with batch processing for large sites
Post type filtering – search across posts, pages, or custom post types to find blocks, patterns, and shortcodes
CSV export – export results for reporting, auditing, and analysis
Block dropdown – select from all registered blocks
Attribute search – find blocks by CSS class and HTML anchor attributes
Synced pattern search – find usage of reusable blocks/patterns
Sortable results tables for easy analysis
WP-CLI support for automation
Performance Optimized
Smart caching with 5-minute TTL
Batch processing (100 posts per batch)
Query optimization (IDs only fetch)
Progress indicators for long operations
Cancellable searches
Hard limit protection (500-1000 posts)
Security
Enhanced input validation with blacklisting
Dual-layer rate limiting (user + IP)
Timeout protection (25-second safeguard)
Information disclosure prevention
XSS and injection prevention
Nonce auto-refresh for long sessions
WP-CLI Commands
Search for blocks:
wp block-usage search core/paragraph –post-type=post,page –format=table
Clear cache:
wp block-usage clear-cache
View security logs:
wp block-usage logs –limit=100 –format=csv
Filters and Hooks
Filters
fbps_query_limit – Adjust search limit (default: 500, max: 1000)
fbps_enable_security_logging – Toggle security logging (default: true)
fbps_allow_editor_access – Allow Editor role access (default: false)
Actions
fbps_security_event – Hook into security event logging
Privacy
This plugin:
* Does not collect any user data
* Does not make external API calls
* Stores security logs locally (last 1000 events)
* Logs include: timestamp, user ID, IP address, event type
* Security logs can be disabled via filter
Support
For support, feature requests, or bug reports, please use the WordPress.org support forums.
Credits
Developed by Matthew Cowan
