這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Custom Block Patterns

外掛說明

You can easily create your own block patterns and register them.

How to use

From the “Block Patterns” in the admin menu, just assemble the pattern using blocks as you would in a regular post.

If it doesn’t work

This plugin works only with PHP version 7.0 or later, WordPress 5.5 or later.
Please check your PHP version or WordPress version.

螢幕擷圖

  • Move to the "Block Patterns" in the admin menu
  • Edit the "Block Patterns" post.
  • Search block patterns from regular posts.
  • Place the block pattern you added.

安裝方式

This plugin can be installed directly from your site.

  1. Log in and navigate to “Plugins” → “Add New”.
  2. Type “Custom Block Patterns” into the Search and hit Enter.
  3. Locate the plugin in the list of search results and click “Install Now”.
  4. Once installed, click the “Activate” link.

使用者評論

2023 年 2 月 18 日
I'm a great fan of plugins which without bells and whistles simply do, what you expect and this plugin certainly is one of them. It allows you easily to create your own block patterns and use them as you like. The plugin is lean and the code clean. So far 5 stars. So, why did I only rate it 4 stars? I like to read the code of plugins, that I want to use on my client's websites. All functions do have a single line comment, but unfortunately in Japanese, which makes it difficult to read (i.e. I have to use a translation programm to understand the comments). The plugin also doesn't seem to follow WordPress' coding standards, e.g. by using short array syntax and inline control structures. Personally, I would have liked it better if the Custom Post Type Block Patterns menu was a submenu of Appearance. A remaining comment // 'menu_position' => 6 looks like the plugin author had some other position in mind, too. Don't let these nitpicky comments fool you - the plugin does what it's supposed to and it can be used without hesitation despite these really minor flaws. Thanks for sharing the plugin.
2021 年 10 月 10 日
A very easy to use and not bloated pluging. Very small footprint. I used to use Blockmeister but they bloated it for commercial use. Now I use this one and it does everything you should ever need.
2020 年 8 月 19 日
ブロックパターンを再利用ブロックみたいに自分で作れたらいいのになあと思っていたところ、Twitterでこのプラグインを知りました。 まさに私の理想の形でブロックパターンを管理できるようになり、感動です。
閱讀全部 3 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Custom Block Patterns〉的開發相關工作。

參與者

〈Custom Block Patterns〉外掛目前已有 4 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Custom Block Patterns〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.4.0

Added pattern category.

1.3.0

Support for WordPress 6.0.

1.2.1

  • ‘loos_cbp_viewport_width’ hook added.
  • ‘loos_cbp_block_types’ hook added.

1.2.0

Support for WordPress 5.8.

1.0.1

Edited the readme.txt.

1.0.0

Initial working version.