开发者 | blockifywp |
---|---|
更新时间 | 2024年3月29日 11:12 |
捐献地址: | 去捐款 |
PHP版本: | 7.4 及以上 |
WordPress版本: | 6.4 |
版权: | GPL-2.0-or-later |
版权网址: | 版权信息 |
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
assets
directory.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.
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.
This plugin is designed to be used by developers and theme authors.