Title: Pattern Editor
Author: Blockify
Published: <strong>2023 年 4 月 4 日</strong>
Last modified: 2024 年 3 月 29 日

---

搜尋外掛

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

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

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

# Pattern Editor

 由 [Blockify](https://profiles.wordpress.org/blockify/) 開發

[下載](https://downloads.wordpress.org/plugin/pattern-editor.zip)

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

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

## 外掛說明

Pattern Editor is a plugin to help you create and edit patterns for WordPress block
themes. It automatically exports patterns on save as PHP files to the active themes`
patterns` directory.

It works with the built-in `wp_block` post type and adds some minimal UI features
to make working with patterns easier. The new Block Pattern editor UI in the Site
Editor is supported, and the `wp_block` post type screen is exposed in the admin
menu for quick access.

#### Features

 * Exports assets (images, SVGs, videos) to the active theme’s `assets` directory.
 * Pattern front end previews.
 * Export patterns as PHP files.
 * Import patterns from PHP files.
 * Edit patterns in the block editor.
 * Can export to category subdirectories or a single directory.
 * Supports the new Block Pattern editor UI in the Site Editor.

#### Filters

    ```
    blockify_pattern_export_use_category_dirs - Enable or disable the use of category directories for pattern exports. Default is `true`. If enabled, patterns will be exported to `patterns/{category}/{pattern-name}.php`. If disabled, patterns will be exported to `patterns/{category}-{pattern-name}.php`.

    blockify_image_export_dir - Set the directory where images and assets are exported to. Default is `themes/$stylesheet/assets`. Images are saved to the `img` subdirectory, SVGs to the `svg` subdirectory, and videos to the `video` subdirectory.

    blockify_pattern_export_content - Allows you to modify the content of the exported pattern file. The first parameter is the content of the pattern file, the second parameter is the pattern post object, and the third parameter is the pattern category slug.
    ```

More documentation coming soon.

## 螢幕擷圖

[⌊Block Patterns post type edit screen⌉⌊Block Patterns post type edit screen⌉[

Block Patterns post type edit screen

[⌊Site Editor block pattern screen⌉⌊Site Editor block pattern screen⌉[

Site Editor block pattern screen

[⌊Edit pattern screen⌉⌊Edit pattern screen⌉[

Edit pattern screen

## 安裝方式

#### From your WordPress dashboard

 1. Visit ‘Plugins > Add New’
 2. Search for ‘Debug Toolkit’
 3. Activate Debug Toolkit from your Plugins page.

## 常見問題集

### How does this plugin work?

Pattern Editor automatically exports patterns on save as PHP files to the active
themes `patterns` directory. It works with the built-in `wp_block` post type and
adds some minimal UI features to make working with patterns easier.

### Who is this plugin for?

This plugin is designed to be used by developers and theme authors.

## 使用者評論

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

### 󠀁[Import does not work!](https://wordpress.org/support/topic/import-does-not-work-12/)󠁿

 [modularte](https://profiles.wordpress.org/modularte/) 2024 年 8 月 2 日

If you have exported the patterns and saved them in the theme, nothing happens after
importing. No patterns are imported, even though they are saved in the theme.

 [ 閱讀全部 1 則使用者評論 ](https://wordpress.org/support/plugin/pattern-editor/reviews/)

## 參與者及開發者

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

參與者

 *   [ Blockify ](https://profiles.wordpress.org/blockify/)

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

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

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

## 變更記錄

#### 0.1.1 – 29 March 2024

 * Remove: Blocks (temporarily)

#### 0.1.0 – 29 March 2024

 * Update: Stable version
 * Add: Escape exported URLs
 * Add: Use category dirs filter
 * Add: Basic pattern canvas implementation
 * Fix: Import pattern category title acronyms

#### 0.0.3 – 2 April 2023

 * Update: Stable version

#### 0.0.2 – 21 March 2023

 * Remove: Navigation menu ref attribute

#### 0.0.1 – 21 March 2023

 * Initial release

## 中繼資料

 *  版本 **0.1.1**
 *  最後更新 **2 年前**
 *  啟用安裝數 **60+**
 *  WordPress 版本需求 ** 6.3 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.4.8**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/pattern-editor/)
 * 標籤:
 * [block](https://tw.wordpress.org/plugins/tags/block/)[block-editor](https://tw.wordpress.org/plugins/tags/block-editor/)
   [editor](https://tw.wordpress.org/plugins/tags/editor/)[gutenberg](https://tw.wordpress.org/plugins/tags/gutenberg/)
   [pattern](https://tw.wordpress.org/plugins/tags/pattern/)
 *  [進階檢視](https://tw.wordpress.org/plugins/pattern-editor/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  1 個 5 星使用者評論     ](https://wordpress.org/support/plugin/pattern-editor/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/pattern-editor/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/pattern-editor/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/pattern-editor/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/pattern-editor/reviews/?filter=1)

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

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

## 參與者

 *   [ Blockify ](https://profiles.wordpress.org/blockify/)

## 技術支援

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

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

## 贊助

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

 [ 贊助這個外掛 ](https://blockifywp.com/)