Title: Pattern Editor
Author: Blockify
Published: <strong>4. april, 2023</strong>
Last modified: 29. marts, 2024

---

Søg plugins

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

Dette plugin **er ikke blevet testet med de seneste 3 større udgivelser af WordPress**.
Det vedligeholdes eller understøttes muligvis ikke længere og kan have kompatibilitetsproblemer,
når det bruges med nyere versioner af WordPress.

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

# Pattern Editor

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

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

 * [Detaljer](https://da.wordpress.org/plugins/pattern-editor/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/pattern-editor/#reviews)
 *  [Installation](https://da.wordpress.org/plugins/pattern-editor/#installation)
 * [Udvikling](https://da.wordpress.org/plugins/pattern-editor/#developers)

 [Support](https://wordpress.org/support/plugin/pattern-editor/)

## Beskrivelse

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.

## Skærmbilleder

 * [[
 * Block Patterns post type edit screen
 * [[
 * Site Editor block pattern screen
 * [[
 * Edit pattern screen

## Installation

#### From your WordPress dashboard

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

## FAQ

### 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.

## Anmeldelser

![](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/) 2. august, 2024

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.

 [ Læs 1 anmeldelse ](https://wordpress.org/support/plugin/pattern-editor/reviews/)

## Bidragsydere & udviklere

“Pattern Editor” er open source-software. Følgende personer har bidraget til dette
plugin.

Bidragsydere

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

[Oversæt “Pattern Editor” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/pattern-editor)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/pattern-editor/), tjek
[SVN repository](https://plugins.svn.wordpress.org/pattern-editor/), eller abonner
på [udviklerloggen](https://plugins.trac.wordpress.org/log/pattern-editor/) via 
[RSS](https://plugins.trac.wordpress.org/log/pattern-editor/?limit=100&mode=stop_on_copy&format=rss).

## Ændringslog

#### 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

## Meta

 *  Version **0.1.1**
 *  Senest opdateret **2 år siden**
 *  Aktive installationer **70+**
 *  WordPress-version ** 6.3 eller højere **
 *  Testet op til **6.4.8**
 *  PHP-version ** 7.4 eller højere **
 *  Sprog
 * [English (US)](https://wordpress.org/plugins/pattern-editor/)
 * Tags
 * [block](https://da.wordpress.org/plugins/tags/block/)[block-editor](https://da.wordpress.org/plugins/tags/block-editor/)
   [editor](https://da.wordpress.org/plugins/tags/editor/)[gutenberg](https://da.wordpress.org/plugins/tags/gutenberg/)
   [pattern](https://da.wordpress.org/plugins/tags/pattern/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/pattern-editor/advanced/)

## Bedømmelser

 5 ud af 5 stjerner.

 *  [  1 5-stjernet anmeldelse     ](https://wordpress.org/support/plugin/pattern-editor/reviews/?filter=5)
 *  [  0 4-stjernet anmeldelser     ](https://wordpress.org/support/plugin/pattern-editor/reviews/?filter=4)
 *  [  0 3-stjernet anmeldelser     ](https://wordpress.org/support/plugin/pattern-editor/reviews/?filter=3)
 *  [  0 2-stjernet anmeldelser     ](https://wordpress.org/support/plugin/pattern-editor/reviews/?filter=2)
 *  [  0 1-stjernet anmeldelser     ](https://wordpress.org/support/plugin/pattern-editor/reviews/?filter=1)

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

[Se alle anmeldelser.](https://wordpress.org/support/plugin/pattern-editor/reviews/)

## Bidragsydere

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

## Support

Har du noget at sige? Har du brug for hjælp?

 [Vis supportforum](https://wordpress.org/support/plugin/pattern-editor/)

## Donér

Vil du gerne støtte udviklingen af dette plugin?

 [ Donér til dette plugin ](https://blockifywp.com/)