| 开发者 | ronalfy |
|---|---|
| 更新时间 | 2026年5月29日 01:28 |
| PHP版本: | 7.2 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/wp-content/plugins/pattern-wrangler directory, or install the plugin through the WordPress plugins screen directly.Pattern Wrangler is often used to curate the client experience when adding layouts 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. An excessive library can slow down the block editor. With Multisite support, you can even disable patterns network-wide.
You can still visit it by adding override=1: https://yourdomain.com/wp-admin/edit.php?post_type=wp_block&override=1
Yes. In the Pattern Wrangler settings, toggle the Enhanced option to off, save, and refresh. The original WordPress block pattern screen will display.
Yes! You can use the [wp_block slug="pattern-slug"] shortcode to output block layouts anywhere in your theme or other blocks. The Pattern must be a local pattern (i.e., reusable block or unsynced pattern).
Yes, Pattern Wrangler sits outside of the Full-site Editor in a top-level menu item. This screen allows you to configure both local and registered items together, curating what is shown inside FSE.
No, this plugin works best with self-hosted installs (normal installs). This plugin uses newer APIs (DataViews) that WordPress.com doesn't allow a custom version of, and the one that ships with Core isn't at the latest version, so the plugin can't get rid of the dependency.
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 layouts are unsalvageable, and should just be disabled or deleted if not being used.