Reusable Blocks Extended

外掛說明

透過完整管理介面、小工具、短代碼及 PHP 函式擴充可重複使用區塊功能。

This plugin extends the Reusable Blocks admin interface and provides few fancy features:

  • Add Reusable Blocks dashboard informations
  • Activate Reusable Blocks admin screen
  • Provide a list of Posts where each Reusable Block is used and the date it was last modified
  • Provide a live preview of your reusable blocks from the Reusable Blocks admin screen, with your theme stylesheets
  • Provide a Reusable Blocks Widget to use your block anywhere you want in your theme’s widgets areas
  • Provide a Reusable Blocks Shortcode to use your block anywhere you want in your Post types (even if they use the Classic Editor rather than Gutenberg!)
  • Provide some Reusable Blocks PHP functions to use your block anywhere you want in your theme even

  • NEW: An easy tool to convert reusable blocks to block patterns in one click!

For a full presentation of Reusable Blocks Extended, see this WordCamp Talk synthesis available on my blog.

螢幕擷圖

  • Extended Reusable Blocks admin screen with preview
  • Reusable block widget

安裝方式

  1. Install the plugin and activate.
  2. Go to Reusable Blocks Admin Menu

常見問題集

How to implement Reusable Blocks using Widgets

  • Go to WP-Admin > Appearance > Widgets.
  • Add “Reusable Block” Widget to your widget area.
  • Choose the reusable block you want to use and save the widget.

How to implement Reusable Blocks with shortcode

  • Go to WP-Admin > Reusable Blocks.
  • Choose the reusable block you want to use; copy the provided shortcode.
  • Then, paste it where you want.

Syntax: [reblex id="NUMERIC_ID_OF_THE_REUSABLE_BLOCK"]

How to implement Reusable Blocks with PHP functions

  • Go to WP-Admin > Reusable Blocks.
  • Choose the reusable block you want to use; copy the provided PHP function.
  • Then, paste it where you want.

Syntax:
reblex_display_block( NUMERIC_ID_OF_THE_REUSABLE_BLOCK );

Note for developers: you may also need to get the shortcode data before displaying it. In this case, you should use the following function:
reblex_get_block( NUMERIC_ID_OF_THE_REUSABLE_BLOCK );

使用者評論

2023 年 5 月 26 日
I have finished the Korean translation.I just want to say thank you for developing such a good plugin.And I hope it will be translated into more languages so that many WordPress users can use it conveniently. Reusable Blocks Extended 한국어 번역을 모두 마쳤습니다.좋은 플러그인을 개발해 주어서 고맙다는 인사를 전하고 싶습니다.그리고 보다 많은 언어로 번역되어 많은 워드프레스 사용자들이 편리하게 사용할 수 있기를 바랍니다.
2023 年 3 月 30 日
The plugin works fine... on its own. When used with other plugins that add columns to the reusable blocks view: this plugin blocks (pun intended) them from working:( So I can't use your plugin alongside: Article Word Count Column Sortable Word Count Reloaded On the other hand, the plugin Admin Columns blocks the above two, AND yours, from working... I hope you can update your plugin to play nice with other plugins? Or, if it's their fault: let me know, and I'll reach out to those other two developers, to let them know they should fix something. Apart from the above, I really dig the functionality of the plugin. Hence I wish I can get to use it;) Oliver
2023 年 3 月 21 日
Very useful plugin. I needed to migrate a site from Stackable v2 to v3 and this plugin helped me to list which reusable blocks were actually still in use, so I didn't need to spend time updating the unused ones.
2022 年 7 月 14 日
Ran into a wall trying to get WordPress Core's reusable Gutenberg blocks to work in widget areas. Seems obvious that that's a perfectly reasonable use case. Thank you for making this plugin, it's excellent!
閱讀全部 33 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Reusable Blocks Extended〉的開發相關工作。

參與者

〈Reusable Blocks Extended〉外掛目前已有 13 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Reusable Blocks Extended〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

0.9.1

0.9

  • Props @chaton666 (Marie Comet) for a small fix.
  • WP 6.0 compatibility.

0.8

  • Performance enhancement on the wp_block list table. Props @grapplerulrich for spotting this.

0.7

  • WP 5.8 compatibility.
  • Replace “Reusable blocks” menu name with “Blocks”.
  • Small variable name and docs change.
  • Various minor interface improvements.

0.6.2

  • Removes a PHP notice.

0.6.1

  • Fix an issue with polylang plugin (props @eddystile).

0.6

  • Introduces the Block Pattern conversion tool for WP 5.5+.

0.5.1

  • Fixes a bug with ACF Pro Blocks. Props @mbcreation for raising the issue.

0.5

  • Improvement of the preview feature, which is now displaying your reusable blocks in a modal window.

0.4

  • Force block editor for wp_block post type even with Classic Editor plugin activated.
  • Collapsible items improvements.

0.3

  • Make block instances collapsible for a better preview. Props @alfredg.

0.2

  • Use @import instead of link tag or enqueues in the preview iframe.

0.1

  • Plugin initial commit. Works fine 🙂