Linux 软件免费装
Banner图

Pattern Wrangler - Manage Block Patterns and Reusable Blocks

开发者 ronalfy
更新时间 2025年12月1日 14:00
PHP版本: 7.2 及以上
WordPress版本: 6.9
版权: GPLv2 or later
版权网址: 版权信息

标签

shortcode block editor patterns block management reusable blocks

下载

2.0.2 1.0.9 1.1.1 1.1.2 1.0.10 1.1.0 1.2.0 2.0.0

详情介绍:

Pattern Wrangler makes managing WordPress block patterns easy, and is designed for both hybrid classic/block themes, block themes, and is compatible with most page builders through its shortcode support. Pattern Wrangler allows you to curate the pattern experience for your clients, controlling down to the pattern what the client sees in the block editor. Here are the major features: Available features on the Patterns screen include:
Pattern Wrangler integrates seamlessly with block-based and classic themes offering a hybrid setup with unmatched flexibility. Spin up your own demo to see Pattern Wrangler in action.

安装:

  1. Upload the plugin files to the /wp-content/plugins/pattern-wrangler directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress.
  3. Use the plugin through the block editor by adding new patterns or importing existing ones.

屏幕截图:

  • An example of an organized Patterns screen.
  • Map registered categories to terms, or rename for better organization or translations.
  • Enable the Customizer UI, and load Additional CSS in the block editor.
  • Hide all patterns, or hide them from core, remote, themes, or plugins.

升级注意事项:

2.0.2 This update sets the default view to enabled. Some copy updates. Several bug fixes involving the preview.

常见问题:

What is Pattern Wrangler used for?

Pattern Wrangler is often used to curate the client experience when adding patterns via the block editor or full-site editor. It can be used to enable/disable various pattern types, as well as allow you to individually enable or disable a specific pattern, whether registered or local. By doing this, you can trim a pattern library that is in the hundreds down to a more manageable number that are actively being used. Others have used this plugin to disable the pattern library completely. Patterns can slow down the block editor. With Multisite support, you can even disable patterns network-wide.

How can I view the old wp_block post type screen?

You can still visit it by adding override=1: https://yourdomain.com/wp-admin/edit.php?post_type=wp_block&override=1

Can I disable the new Patterns View screen?

Yes. In the Pattern Wrangler settings, toggle the Enhanced Patterns View to off, save, and refresh. The original WordPress patterns screen will display.

Can I import Patterns from any WordPress site?

Yes! If you have the pattern's code, Pattern Wrangler can import it and localize any associated images.

Can I use Patterns in page builders like Elementor?

Yes! You can use the [wp_block slug="pattern-slug"] shortcode to output block patterns anywhere in your theme or other blocks. The Pattern must be a local pattern (i.e., synced or unsynced pattern).

Does this work with Block Themes?

Yes, Pattern Wrangler sits outside of the Full-site Editor in the Patterns menu item. This Patterns screen allows you to configure both local and registered patterns together, curating what is shown inside FSE.

The preview for a pattern isn't working or is formatted wrong.

I've done my best for previews in 2.0, and I know the finished result isn't perfect. The preview feature took several months of solo-developer time, and I've put my best foot forward. I know there will be preview bugs, but with patience, I'm sure we can fix the quirks together. If you can, please be detailed in any support requests as to which plugin or theme might be causing the pattern issue. I don't advise pasting pattern code on .org, so the best way to reach me is via my support form, which you can find in the Pattern Wrangler admin settings. That being said, some patterns are unsalvageable, and should just be disabled or deleted if not being used.

更新日志:

2.0.2 2.0.0 1.2.0 1.1.2 1.1.1 1.1.0 1.0.10 1.0.9 1.0.7 1.0.3 1.0.1 1.0.0