Title: BlockX
Author: EdwardBock
Published: <strong>2020 年 10 月 29 日</strong>
Last modified: 2026 年 8 月 3 日

---

搜尋外掛

![](https://ps.w.org/blockx/assets/banner-772x250.png?rev=3124448)

![](https://ps.w.org/blockx/assets/icon-256x256.png?rev=3123798)

# BlockX

 由 [EdwardBock](https://profiles.wordpress.org/edwardbock/) 開發

[下載](https://downloads.wordpress.org/plugin/blockx.1.10.4.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/blockx/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/blockx/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/blockx/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/blockx/#developers)

 [技術支援](https://wordpress.org/support/plugin/blockx/)

## 外掛說明

Elevate your Gutenberg Block development experience with BlockX. This powerful plugin
bridges the gap between the modern
 Gutenberg JavaScript API and the traditional
PHP methods WordPress developers know and love. With BlockX, you can effortlessly
create custom Gutenberg blocks entirely using PHP, bypassing the need for complex
JavaScript coding.

**Features:**
 – **Seamless Integration:** Simplifies the process of building custom
Gutenberg blocks using PHP. – **Developer-Friendly:** Leverages familiar PHP syntax
and functions to create and manage blocks. – **Time-Saving:** Reduces the learning
curve and development time by avoiding intricate JavaScript coding. – **Customizable:**
Provides a robust API to create highly customizable blocks tailored to your needs.–**
Efficient Workflow:** Streamlines the block creation process, allowing you to focus
on functionality and design. – **Comprehensive Documentation:** Includes detailed
guides and examples to help you get started quickly. – **Compatibility:** Fully 
compatible with the latest WordPress versions and Gutenberg updates.

**Why Choose PHP Block Builder for Gutenberg?**
 – **Enhanced Productivity:** Build
and deploy custom blocks faster using familiar PHP code. – **Reduced Complexity:**
No need to delve into JavaScript intricacies; keep your development workflow simple.–**
Versatile:** Perfect for developers looking to extend Gutenberg without abandoning
their PHP expertise.

### Arbitrary section

## 安裝方式

 1. Upload `blockx.zip` to the `/wp-content/plugins/` directory
 2. Extract the Plugin to a `blockx` Folder
 3. Activate the plugin through the ‘Plugins’ menu in WordPress
 4. Use core block-X
 5. Create new block-x in your custom theme or plugin code

## 常見問題集

### How can I add my own blockX?

You can find all you need to know in the docs: [https://github.com/palasthotel/blockX/blob/master/README.md](https://github.com/palasthotel/blockX#create-new-block-class)

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

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

參與者

 *   [ EdwardBock ](https://profiles.wordpress.org/edwardbock/)
 *   [ Palasthotel GmbH ](https://profiles.wordpress.org/palasthotel/)

〈BlockX〉外掛目前已有 1 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/blockx/contributors)
為這個外掛做出的貢獻。

[將〈BlockX〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/blockx)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/blockx/)、查看
[SVN 存放庫](https://plugins.svn.wordpress.org/blockx/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/blockx/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/blockx/)。

## 變更記錄

#### 1.10.4

 * require a nonce for asset regeneration and escape rendered output (0a801d9)= 
   1.10.3 =
 * Security Bugfix with Breaking change for Authors block

#### 1.10.2

 * Bugfix: Add missing import in Headless.php

#### 1.10.1

 * Bugfix: Regeneration of block.json in some cases incorrectly disabled

#### 1.10.0

 * Feature: Added AutoComplete widget
 * Bugfix: Provide default content values in headless response

#### 1.9.3

 * Bugfix: UrlSuggestion provider didn’t display label properly
 * Optimize: Added list widget controls and list position indicator

#### 1.9.2

 * Bugfix: Wrong access permission – caused an error on installation

#### 1.9.1

 * Optimization: Allow some html tags in info widget
 * Refactor: PHP 8.2 fix; remove dynamic properties

#### 1.9.0

 * Feature: ListOf widget can be restricted to min, max and exact number of items

#### 1.8.10

 * Fix: Rest error on autosave 404 if no changes were made.

#### 1.8.9

 * Optimization: force min value in number control widget

#### 1.8.8

 * Fix: problem with autosuggest widget

#### 1.8.6

 * Fix: add missing registerBlockTypeArgs values to block.json files

#### 1.8.5

 * Fix: Support for custom class and anchor block fields

#### 1.8.4

 * Bugfix: Container style generator fix

#### 1.8.3

 * Optimization: Media widget can preview svg now

#### 1.8.2

 * Dependency updates

#### 1.8.1

 * Optimization: Use frontend template in editor if there is no *__editor template
   file

#### 1.8.0

 * BREAKING CHANGE: moved prepare post to headless plugin. Please update to headless
   > 1.6.2

#### 1.7.1

 * Bugfix: write permission denied for generator fix

#### 1.7.0

 * Headless plugin integrations
 * Bugfix: Do not escape slashes in block.json

#### 1.6.2

 * Fix: empty render blocks problem

#### 1.6.1

 * Fix: Scripts bugfix

#### 1.6.0

 * Feature: Composed blocks
 * Feature: you can now use @palasthotel/blockx npm package for a better developer
   experience

#### 1.5.2

 * Bugfix: Media widget object cache fix

#### 1.5.1

 * Bugfix: Missing content state on first load fix

#### 1.5.0

 * BREAKING CHANGE: renamed Readonly class to Read_Only
 * Feature: You can add custom widgets now

#### 1.4.0

 * Optimization: All BlockX blocks are using block.json api

#### 1.3.3

 * Feature: Minimum and maximum restriction for number widget
 * UI: Panel and Media widget UI optimization

#### 1.3.2

 * Feature: Help text for ReadonlyWidget

#### 1.3.1

 * Feature: Maximal characters restriction for TextWidget and TextareaWidget

#### 1.3.0

 * Beta Feature: Container blocks

#### 1.2.2

 * Feature: Size restriction options for media widget
 * Optimization: preview mode class for desktop, tablet and mobile preview added
   to block preview
 * Optimization: media button has a delete selection button now

#### 1.2.1

 * Security fix: rest route permission callback fix
 * New Widget: Info

#### 1.2.0

 * New Widget: User
 * New Widget: AutoSuggest
 * New Widget: Url
 * New Widget: Abstract Ajax

#### 1.1.4

 * Optimization: Provide helper function to build wp query args from TaxQuery widget
   args.

#### 1.1.3

 * Optimization: always set block attributes, so we can use random defaults that
   are saved
 * Bugfix: property type declaration with php < 7.4 fix

#### 1.1.2

 * Bugfix: Embedded posts in groups were handled as relations

#### 1.1.1

 * Bugfix: Template did not find default templates

#### 1.1.0

 * Feature: You may remove blockx blocks in collect action now

#### 1.0.12

 * Bugfix: Again fixed performance issues with tax query widget and several thousand
   terms

#### 1.0.11

 * Bugfix: fixed performance issues with tax query widget and several thousand terms
 * Bugfix: deep clone list widget changes to avoid reference problems when duplicating
   a block
 * Bugfix: ignore wpml constraints with suppress_filters in wp_query
 * Refactoring: Uses wp-components library now

#### 1.0.10

 * Bugfix: missing database table when updating from 1.0.0

#### 1.0.9

 * Bugfix: SSRQ rendering crash when using none latin1 chars
 * Refactoring: deprecated registerStore function replaced with createReduxStore
   and register

#### 1.0.8

 * New Widget: Textarea
 * Optimization: you can add a help text to Text widget
 * Optimization: Select Widget multiple values
 * Bugfix: fixed wrong auto save timeout sanitation

#### 1.0.7

 * New Widget: ListOf
 * Optimization: auto save block changes after a specific time

#### 1.0.6

 * New Widget: Media
 * Optimization: All block attributes are available in the blockx templates now
 * Bugfix: Taxonomies

#### 1.0.5

 * Checkt compatibility with WP5.7
 * Bugfix: Posts block was not using taxonomy query

#### 1.0.4

 * New Param: Filter “blockx_rest_posts” got a new $args parameter that holds the
   query args for the initial wp query

#### 1.0.3

 * New Widget: Divider
 * New Widget: Readonly
 * Bugfix: Post Widget custom post type title resolution

#### 1.0.2

 * Feature: Bidirectional relation for embedded posts exposed via public function‘
   blockx_get_embedded_in_post_ids’
 * Feature: New widget type Hidden
 * New filter: ‘blockx_rest_posts’ to change query result of posts query
 * Optimization: Custom ServerSideRenderQueue component for ssr rendering of blocks
   in a single request

#### 1.0.1

 * Feature: Template inheritance
 * New Block: Post Embed
 * New Block: Authors
 * New Widget: Post – Relate a post
 * New overridable methods for block types on post_save and post_delete
 * New overridable methods for widgets on post_save and post_delete

#### 1.0.0

 * First release

## 中繼資料

 *  版本 **1.10.4**
 *  最後更新 **1 週前**
 *  啟用安裝數 **30+**
 *  WordPress 版本需求 ** 5.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.0.3**
 *  PHP 版本需求 ** 8.1 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/blockx/) 及 [German](https://de.wordpress.org/plugins/blockx/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/blockx)
 * 標籤:
 * [block](https://tw.wordpress.org/plugins/tags/block/)[developer](https://tw.wordpress.org/plugins/tags/developer/)
   [gutenberg](https://tw.wordpress.org/plugins/tags/gutenberg/)[utils](https://tw.wordpress.org/plugins/tags/utils/)
 *  [進階檢視](https://tw.wordpress.org/plugins/blockx/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/blockx/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/blockx/reviews/)

## 參與者

 *   [ EdwardBock ](https://profiles.wordpress.org/edwardbock/)
 *   [ Palasthotel GmbH ](https://profiles.wordpress.org/palasthotel/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/blockx/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](http://palasthotel.de/)