跳到内容

Find Blocks, Patterns & Shortcodes

v1.1.4

matthewneilcowan · 2025年12月25日 上架

Find which posts and pages use specific Gutenberg blocks, patterns, and shortcodes with advanced search and CSV export functionality.

正在使用
10 以下
评分
5.0 / 5
累计下载
1,884
最近更新
2026年9月26日
1 条评价需要 WordPress 5.0+已测试到 7.1.5PHP 7.0+

截图

Main search interface with block dropdown and post type selection
Main search interface with block dropdown and post type selection
Search results table with sortable columns and export csv button
Search results table with sortable columns and export csv button

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 fbps search core/paragraph –post-type=post,page –format=table

Clear cache:
wp fbps clear-cache

View security logs:
wp fbps 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

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums