| 开发者 | bmx269 |
|---|---|
| 更新时间 | 2026年10月2日 07:55 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
block.json metadata or template changes required/patterns folder or by a pluginmytheme/staff-profile) or just the part after the slash (staff-profile)staff-profile, then save the settings.
How it differs from core starter patterns
WordPress can already offer "starter patterns" when you create a new page. Those are useful, but they work differently:
core/post-content block type, and by default only for pages. This plugin works with any pattern and any public post type.blankless folder to /wp-content/plugins/.Start typing in a slug field on the settings screen. It suggests every published Saved Pattern and every registered pattern on the site.
A Saved Pattern's slug is its post slug, usually its title in lowercase with hyphens. A registered pattern's slug is its registered name, such as mytheme/staff-profile, or just staff-profile.
They show where the matched pattern lives. "Saved in Site Editor" means it was made in WordPress and saved on your site, under Appearance → Editor → Patterns (or Appearance → Patterns with a classic theme, where it reads "Saved in Patterns"). Click Edit next to it to open that pattern. "In Code" means the pattern comes from your theme's or a plugin's files, so it's changed there rather than in WordPress.
The pattern saved in the Site Editor takes priority over the one in code, as long as it was published when you last saved the settings. Otherwise the pattern in code is used.
Yes. Every public post type appears in the settings table, except Media and Patterns themselves.
New posts open with the normal empty editor, as if the plugin weren't there. The Status column shows "Pattern not found" so you can spot the problem.
No. It only fills new posts that start out empty. Existing posts are never changed.
No. The plugin copies the pattern's blocks into each new post as a starting point. Changing the pattern later affects posts created after the change, not ones that already exist.
WordPress only shows that window for empty new posts. Once a post type has a default pattern, its new posts aren't empty, so the window stays closed. Clear the slug for that post type to get it back.
Administrators, or any role with the manage_options capability.
It works, but patterns are block markup, so the Classic Editor shows the raw HTML and block comments. The plugin is meant for the block editor.
Yes. Each site has its own settings. Deleting the plugin removes the setting from every site in the network.
It stores a single option, blankless, holding each post type's slug and, for Saved Patterns, the ID of the pattern it's linked to. Deleting the plugin from the Plugins screen removes that option. Your patterns and posts are not touched.