Block Catalog

설명

  • Find which blocks are used across your site.
  • Fully Integrated with the WordPress Admin.
  • Use filters to see Posts that use a specific block.
  • Find Posts that use Reusable Blocks.
  • Use the WP CLI to quickly find blocks from the command line.
  • Use custom WordPress filters to extend the Block Catalog.

Fork on GitHub

Getting Started

  1. On activation, the plugin will prompt you to index your content. You need to do this first before you will be able to see the various blocks used on your site. You can also go to WP-Admin > Tools > Block Catalog to do this yourself. Alternately, you can run the WP CLI command wp block-catalog index to index your content from the command line.

  2. Once indexed, you will be able to see the different blocks used on your site in the Block Catalog Taxonomy.

  3. Navigating to any Block Editor post type will also show you the list of blocks present in a post.

  4. You can also filter the listing to only show Posts that have a specific block.

스크린샷

  • The Block Catalog indexing page. You need to index your content first.
  • The Blocks found by the plugin on your site.
  • The Blocks for each post can be seen on the post listing page.
  • You can filter the post listing to a specific Block using this dropdown.

FAQ

1) Why does the Plugin require indexing?

Block Catalog uses a taxonomy to store the data about blocks used across a site. The plugin can build this index via the Tools > Block Catalog screen or via the WP CLI wp block-catalog index. After the initial index, the data is automatically kept in sync after any content updates.

2) Why does the name displayed in the plugin use the blockName attribute instead of the title?

If your blocks are registered on the Backend with the old register_block_type API, you may be missing the title attribute. The newer register_block_type_from_metadata uses the same block.json on the FE and BE which includes the Block title.

When the plugin detects such a missing title, it uses the blockName suffix instead. eg:- xyz/custom-block will display as Custom Block.

To address this you need to update your custom block registration. If this is outside your control, you can also use the block_catalog_block_title filter hook to override the title as seen here.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“Block Catalog”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Block Catalog”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.5.4 – 2024-02-29

1.5.3 – 2023-11-23

1.5.2 – 2023-11-16

1.5.1 – 2023-10-24

Note that this release changes the name of the base plugin file. As such, you’ll probably need to reactivate the plugin after updating.

1.5.0 – 2023-08-11

= 1.4.0 – 2022-12-03

  • Improves Core Block Display Titles logic
  • Fixes parent term for blocks registered without namespace
  • Improve Reusable Block detection
  • Add hooks to support nested variations
  • Adds unit tests

1.3.2 – 2022-11-25

  • Updates readme.txt

1.3.1 – 2022-11-25

  • Minor docs updates

1.4.0 – 2022-12-03

  • Improves Core Block Display Titles logic
  • Fixes parent term for blocks registered without namespace
  • Improve Reusable Block detection
  • Add hooks to support nested variations
  • Adds unit tests

1.3.0 – 2022-11-25

  • Adds support for hierarchical classification
  • Improves WP CLI find command
  • Adds inline filter hook documentation
  • Updates screenshots

1.2.2 – 2022-11-25

  • Updates Documentation

1.2.1 – 2022-11-25

  • Improves block title detection when default title is missing.
  • Initial svn release

1.2.0 – 2022-11-24

  • Improves filter output with wp_kses.

1.1.0 – 2022-11-23

  • Improves batch indexing for larger sites.
  • Refactor delete index to use batch mode.
  • Improves error handling during indexing & deleting via WP-Admin.

1.0.1 – 2022-11-21

  • Initial release