Linux 软件免费装
Banner图

Pattern Builder

开发者 twentybellows
pbking
更新时间 2026年9月16日 22:20
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

gutenberg design block-editor block-patterns patterns

下载

2.0.0 1.0.3 2.1.0 2.1.1 1.0.2 1.0.4

详情介绍:

Pattern Builder transforms how you work with WordPress block patterns, providing a comprehensive solution for creating, managing, and organizing patterns right from your WordPress admin. Key Features Pattern Management Made Easy Use Cases For Theme Developers

安装:

From WordPress Admin
  1. Navigate to Plugins > Add New
  2. Search for "Pattern Builder"
  3. Click "Install Now" and then "Activate"
  4. Navigate to Appearance > Pattern Builder to start creating patterns
Manual Installation
  1. Download the plugin zip file
  2. Navigate to Plugins > Add New > Upload Plugin
  3. Choose the downloaded file and click "Install Now"
  4. Activate the plugin through the 'Plugins' screen in WordPress
  5. Navigate to Appearance > Pattern Builder to start creating patterns
For Developers
  1. Clone the repository: git clone https://github.com/Twenty-Bellows/pattern-builder.git
  2. Install dependencies: npm install && composer install
  3. Build assets: npm run build
  4. Start development environment: npm run start
  5. Watch for changes: npm run watch

常见问题:

Can I use this with any theme?

Yes! Pattern Builder works with any WordPress theme that supports the block editor. It's especially powerful when used with block themes.

Can I manage existing theme patterns?

Yes, Pattern Builder provides a unified interface to manage both theme patterns (PHP files in your theme's patterns directory) and user-created patterns stored in the database.

Does it work with Advanced Custom Fields?

Yes, and with no code to write. Choose a post type in the Pattern Bindings panel and the ACF fields attached to it are offered alongside that post type's own custom fields. One ACF setting has to be on first: open the field, and under Presentation switch on "Allow Access to Value in Editor UI". ACF leaves that off for any field created since its 6.3.6, and a field without it renders nothing wherever it is bound, so Pattern Builder does not offer one until it is on.

Can I bind a block to my own data?

Yes. Anything registered as post meta with show_in_rest is offered automatically. For data of your own, register a block binding source: WordPress resolves the value from your PHP callback, and registering the same source in the editor with a getFieldsList puts your fields in the panel.

更新日志:

2.1.1 2.1.0 2.0.0 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0