Linux 软件免费装
Banner图

Pattern Editor

开发者 blockifywp
更新时间 2024年3月29日 11:12
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 6.4
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

editor block gutenberg block editor pattern blockify

下载

详情介绍:

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

安装:

From your WordPress dashboard
  1. Visit 'Plugins > Add New'
  2. Search for 'Debug Toolkit'
  3. Activate Debug Toolkit from your Plugins page.

屏幕截图:

  • Site Editor block pattern screen
  • Edit pattern screen

常见问题:

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.

更新日志:

0.1.0 - 29 March 2024 0.0.3 - 2 April 2023 0.0.2 - 21 March 2023 0.0.1 - 21 March 2023