Title: DooBlockPatterns
Author: doowebs
Published: <strong>2022 年 11 月 26 日</strong>
Last modified: 2026 年 5 月 23 日

---

搜索插件

![](https://ps.w.org/doo-block-patterns/assets/banner-772x250.jpg?rev=2824471)

![](https://ps.w.org/doo-block-patterns/assets/icon.svg?rev=2824471)

# DooBlockPatterns

 作者：[doowebs](https://profiles.wordpress.org/doowebs/)

[下载](https://downloads.wordpress.org/plugin/doo-block-patterns.1.3.1.zip)

 * [详情](https://cn.wordpress.org/plugins/doo-block-patterns/#description)
 * [评价](https://cn.wordpress.org/plugins/doo-block-patterns/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/doo-block-patterns/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/doo-block-patterns/#developers)

 [支持](https://wordpress.org/support/plugin/doo-block-patterns/)

## 描述

Create custom block patterns. The patterns can be designed just like you design 
a blog post or a page with the block editor.
 You can assign any category or keywords.

### Key Features

 * Create custom patterns from one or more blocks in the post editor
 * Group your patterns in categories
 * Optionally add any keywords or aliases that help users discover it while searching
   in the inserter
 * Create custom pattern categories
 * Set a viewport width to optimize the scaled width of the preview in the block
   inserter
 * Add an optional hidden text if the title does not fully describe what the pattern
   does.
 * Deleting patterns, modifying them or uninstalling the plugin does not affect 
   the blocks created with the patterns, since once the pattern is inserted, it 
   is not linked to the source pattern.
 * Option to remove patterns when plugin is removed

### Getting Started

 1. Locate and click on the ‘**Doo Block Patterns**‘ menu item in the sidebar admin
    menu.
 2. Click on the ‘**Add New**‘ button.
 3. Give your pattern a name.
 4. Start writing or choose any blocks you want to be part of your pattern.
 5. Publish the pattern.
 6. Go to a test post or page and locate your pattern in the Block Inserter under the
    pattern tab and click on it.
 7. The block pattern will now be added to your page. All contained blocks are now 
    independent of the original pattern and can be edited as any regular block.

## 屏幕截图

 * [[
 * Pattern with blocks
 * [[
 * Pattern settings
 * [[
 * Block Patterns list

## 安装

From your admin dashboard,

 1. Select Plugins > Add New.
 2. From the search box, type **Doo Block Pattern** and then search.
 3. Click the install button and then activate the plugin.

## 常见问题

### How to make a copy of the patterns and incorporate them into another WP?

Simply, using the WP export tool, generate an XML file, which serves as a copy and
can be imported into another WP.

### What users/roles have the ability to create pattern blocks?

The users who can create custom block patterns in this plugin are those with the
role of: administrator, editor or author.

### Who can change the plugin settings (for example, delete data on uninstall)?

Only administrators (capability manage_options).

## 评价

![](https://secure.gravatar.com/avatar/47101907d891c535f2cb6db6df537a622b6af6f0e0d152a7f5e9b16afb7ee4e4?
s=60&d=retro&r=g)

### 󠀁[A plugin to help building with the block editor](https://wordpress.org/support/topic/a-plugin-to-help-building-with-the-block-editor/)󠁿

 [teodw](https://profiles.wordpress.org/teodw/) 2023 年 1 月 7 日

This plugin allows you to create block patterns, which can be used in the block 
editor by site builders.

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/doo-block-patterns/reviews/)

## 贡献者及开发者

「DooBlockPatterns」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ doowebs ](https://profiles.wordpress.org/doowebs/)
 *   [ teodw ](https://profiles.wordpress.org/teodw/)
 *   [ enricdw ](https://profiles.wordpress.org/enricdw/)

[帮助将「DooBlockPatterns」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/doo-block-patterns)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/doo-block-patterns/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/doo-block-patterns/)，或通过[RSS](https://plugins.trac.wordpress.org/log/doo-block-patterns/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/doo-block-patterns/)。

## 更新日志

#### [1.0.0] – 2022-11-26

Initial release.

#### [1.1.0] – 2022-12-02

Fix a bug on remove plugin.
 Improved: CPT register not public

#### [1.2.0] – 2022-12-03

Improved: Performance.
 Added: FAQ’s in readme.txt

#### [1.2.1] – 2022-12-16

Fixed: bug in save block pattern.

#### [1.2.2] – 2022-12-16

Improved: multisite.

#### [1.2.3] – 2023-04-07

Fixed: bug in display manage columns.
 Update: readme.txt

#### [1.2.4] – 2023-06-03

Fixed: bug in meta box.

#### [1.2.5] – 2023-10-14

Tested and review WP 6.3.2
 Add revisions in editor

#### [1.2.6] – 2024-05-09

Tested and review WP 6.5.3
 Add revisions in editor

#### [1.2.7] – 2024-08-28

Tested and review WP 6.6.1
 Add revisions in editor

#### [1.2.8] – 2026-05-09

Tested up to WordPress 6.9.4.
 Fixed incorrect mapping between viewport width and
keywords when registering patterns. Hardened metabox saves with a nonce; restrictive
plugin settings now require manage_options. Sanitized pattern descriptions and taxonomy
labels used for pattern categories. Fixed uninstall flow (no longer loads main plugin
file; taxonomy cleanup uses Core APIs; runs outside is_admin-only gate). Settings
checkbox for uninstall data now saves correctly when unchecked.

#### [1.3.0] – 2026-05-10

Improved internationalization: reliable loading of bundled translations (es_ES.mo),
fallback to WordPress language packs, and minor Spanish string fixes in es_ES.
 
Updated Poedit keyword list for future string extraction. Bundled es.mo alongside
es_ES.mo for sites using the generic es locale. PO header Language set to es_ES.

#### [1.3.1] – 2026-05-23

Tested up to WordPress 7.0.

## 额外信息

 *  版本 **1.3.1**
 *  最后更新：**1 周前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 6.1 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/doo-block-patterns/)
 * 标签
 * [block patterns](https://cn.wordpress.org/plugins/tags/block-patterns/)[block-editor](https://cn.wordpress.org/plugins/tags/block-editor/)
   [gutenberg](https://cn.wordpress.org/plugins/tags/gutenberg/)[patterns](https://cn.wordpress.org/plugins/tags/patterns/)
 *  [高级视图](https://cn.wordpress.org/plugins/doo-block-patterns/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/doo-block-patterns/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/doo-block-patterns/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/doo-block-patterns/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/doo-block-patterns/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/doo-block-patterns/reviews/?filter=1)

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

[查看全部评论](https://wordpress.org/support/plugin/doo-block-patterns/reviews/)

## 贡献者

 *   [ doowebs ](https://profiles.wordpress.org/doowebs/)
 *   [ teodw ](https://profiles.wordpress.org/teodw/)
 *   [ enricdw ](https://profiles.wordpress.org/enricdw/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/doo-block-patterns/)